PSI2IR: Fix bound inner class constructor callable reference generation
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
package test
|
||||
|
||||
class Foo<T> {
|
||||
inner class Inner<P>(val a: T, val b: P)
|
||||
}
|
||||
|
||||
inline fun <A, B> foo(a: A, b: B, x: (A, B) -> Foo<A>.Inner<B>): Foo<A>.Inner<B> = x(a, b)
|
||||
|
||||
fun box(): String {
|
||||
val z = Foo<String>()
|
||||
val foo = foo("O", "K", z::Inner)
|
||||
return foo.a + foo.b
|
||||
}
|
||||
Reference in New Issue
Block a user