JVM_IR KT-36984 SAM wrappers are anonymous inner classes

This commit is contained in:
Dmitry Petrov
2020-12-17 11:35:39 +03:00
parent 443cd0fc2c
commit 57dd9fc87a
17 changed files with 467 additions and 17 deletions
@@ -16,3 +16,23 @@ fun <T> test() {
x.foo<Any>()
}
class Test {
fun <T> test() {
val x = object {
fun <S1> foo() {}
fun <S2> S2.ext() {}
val <S3> S3.extVal
get() = 1
var <S4> S4.extVar
get() = 1
set(value) {}
}
x.foo<Any>()
}
}