Fix SOE when recursive type argument is used with star projection

#KT-41043 Fixed
This commit is contained in:
Mikhail Zarechenskiy
2020-08-26 15:38:25 +03:00
parent 674e9e455f
commit 06a592c018
9 changed files with 53 additions and 1 deletions
@@ -0,0 +1,15 @@
class Foo<out T>(val key: T)
class Bar()
class KFlowable<T> {
fun <R> scan(initial: R, accumulator: (R, T) -> R) {}
}
fun test(k: KFlowable<Foo<Enum<*>>>) {
k.scan(Bar()) { s, t -> Bar() }
}
fun box(): String {
test(KFlowable())
return "OK"
}