PSI2IR: Fix bound inner class constructor callable reference generation

This commit is contained in:
Dmitry Petrov
2020-01-24 14:40:32 +03:00
parent f7321b497b
commit 90b250d241
6 changed files with 214 additions and 2 deletions
@@ -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
}