enighma
01/27/2017, 9:27 PMredrield
01/28/2017, 1:27 AMredrield
01/28/2017, 1:27 AMval bar = Bar(*foo)
, or just trying to destruct foo inline so that I don't need val (x, y) = foo; val bar = Bar(x, y)
redrield
01/28/2017, 1:27 AMredrield
01/28/2017, 1:28 AMmg6maciej
01/28/2017, 1:46 AMredrield
01/28/2017, 1:46 AMilya.gorbunov
01/28/2017, 2:34 AMbenleggiero
01/28/2017, 2:35 AMbenleggiero
01/28/2017, 3:06 AMRect<Fraction...> is not FractionRect▾
benleggiero
01/28/2017, 3:07 AMFractionRect declaration▾
benleggiero
01/28/2017, 3:07 AMComputablePoint declaration▾
benleggiero
01/28/2017, 3:08 AMComputableSize declaration▾
benleggiero
01/28/2017, 3:09 AMComputableRect declaration▾
benleggiero
01/28/2017, 3:09 AMbenleggiero
01/28/2017, 3:10 AMmg6maciej
01/28/2017, 3:15 AMkotlinc pasted_image_at_2017_01_27_22_09.png -include-runtime -d test.jar
and it doesn't work for me either.benleggiero
01/28/2017, 3:33 AMbenleggiero
01/28/2017, 3:37 AMbenleggiero
01/28/2017, 3:38 AMilya.gorbunov
01/28/2017, 3:59 AMRect<Fraction, Point<Fraction>, Size<Fraction>>
was required, but you're passing FractionRect
which is Rect<Fraction, ComputablePoint<Fraction>, ComputableSize<Fraction>>
benleggiero
01/28/2017, 4:00 AMComputablePoint<Fraction>
is Point<Fraction>
and ComputableSize<Fraction>
is Size<Fraction>
... right?ilya.gorbunov
01/28/2017, 4:01 AMRect<..., ComputablePoint<...>>
is not Rect<..., Point<...>>
because it's invariant on that type parameterbenleggiero
01/28/2017, 4:01 AMSome<String>
wouldn't be Some<CharSequence>
?benleggiero
01/28/2017, 4:02 AMmg6maciej
01/28/2017, 4:02 AMList<String>
is not List<Any>
.ilya.gorbunov
01/28/2017, 4:02 AMList<String>
is List<Any>
, because list is declared covariant: List<out T>
mg6maciej
01/28/2017, 4:02 AMbenleggiero
01/28/2017, 4:02 AMmg6maciej
01/28/2017, 4:02 AMin
before your type.