Support qualified this refs in bytecode
This commit is contained in:
1 parent
7850d5fbde
commit
f0dc0d2396
3 files changed
+27
No files matched your search
@@ -140,4 +140,18 @@ class BytecodeRecentOpsTest {
|
||||
""".trimIndent()
|
||||
)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun qualifiedThisValueRef() = runTest {
|
||||
eval(
|
||||
"""
|
||||
class T(val v) {
|
||||
fun get() {
|
||||
this@T.v
|
||||
}
|
||||
}
|
||||
assertEquals(7, T(7).get())
|
||||
""".trimIndent()
|
||||
)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user