Write proper enclosingMethod/enclosingClass information to bytecode

This commit is contained in:
Mikhael Bogdanov
2013-02-11 17:16:46 +04:00
parent 1a54e42eb7
commit 1b2da6b558
8 changed files with 283 additions and 13 deletions
@@ -0,0 +1,25 @@
class WithClassObject {
class object {
fun foo() {}
val value: Int = 0
val valueWithGetter: Int
get() = 1
var variable: Int = 0
var variableWithAccessors: Int
get() = 0
set(v) {}
}
class MyInner {
fun foo() {}
val value: Int = 0
}
}
object PackageInner {
fun foo() {}
val value: Int = 0
}