NI: approximate not top-level captured types during code generation
^KT-40693 Fixed
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
interface BasePublisher<U>
|
||||
|
||||
interface Flow<out P>
|
||||
|
||||
fun <R> asFlow(x: BasePublisher<R>): Flow<R> = null as Flow<R>
|
||||
|
||||
class Document<S>
|
||||
|
||||
interface DerivedPublisher<K>: BasePublisher<Document<K>> {}
|
||||
|
||||
class Foo<T>(val x: DerivedPublisher<out T>) : Flow<Document<out T>> by asFlow(x)
|
||||
|
||||
fun box() = "OK"
|
||||
Reference in New Issue
Block a user