Skip to content

Commit

Permalink
Merge pull request #14 from mnbjhu/bug_fix
Browse files Browse the repository at this point in the history
bug_fix
  • Loading branch information
mnbjhu committed Jan 29, 2023
2 parents dc460da + c62395a commit 06dec64
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ data class MultipleReturn2<a, A: ReturnValue<a>, b, B: ReturnValue<b>>(val first
}
}
composite.endStructure(descriptor)
return f!! to s!!
return f as a to s as b
}

override fun serialize(encoder: Encoder, value: Pair<a, b>) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ data class MultipleReturn3<a, A: ReturnValue<a>, b, B: ReturnValue<b>, c, C: Ret
}
}
composite.endStructure(descriptor)
return Triple(f!!, s!!, t!!)
return Triple(f as a, s as b, t as c)
}

override fun serialize(encoder: Encoder, value: Triple<a, b, c>) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ data class MultipleReturn4<a, A: ReturnValue<a>, b, B: ReturnValue<b>, c, C: Re
}
}
composite.endStructure(descriptor)
return Vec(p1!!, p2!!, p3!!, p4!!)
return Vec(p1 as a, p2 as b, p3 as c, p4 as d)
}

override fun serialize(encoder: Encoder, value: Vec<a, b, c, d>) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ data class MultipleReturn5<a, A: ReturnValue<a>, b, B: ReturnValue<b>, c, C: Re
}
}
composite.endStructure(descriptor)
return Vec(p1!!, p2!!, p3!!, p4!!, p5!!)
return Vec(p1 as a, p2 as b, p3 as c, p4 as d, p5 as e)
}

override fun serialize(encoder: Encoder, value: Vec<a, b, c, d, e>) {
Expand Down

0 comments on commit 06dec64

Please sign in to comment.