[FIR] Approximate captured types during approximation of local types
^KT-57222 Fixed
This commit is contained in:
committed by
Space Team
parent
ad002437b4
commit
f7733e819d
+9
@@ -0,0 +1,9 @@
|
||||
// ISSUE: KT-57222
|
||||
|
||||
interface Invariant<A>
|
||||
|
||||
fun Invariant<in Number>.publicFunc() = privateFunc()
|
||||
|
||||
private fun <B> Invariant<B>.privateFunc() = object : Invariant<B> {}
|
||||
|
||||
fun box() = "OK"
|
||||
Reference in New Issue
Block a user