[Tests] Add bytecodeListing tests

This commit is contained in:
Anastasiya Shadrina
2021-10-18 19:11:21 +07:00
committed by TeamCityServer
parent f05ca5be33
commit 6cd50bc438
18 changed files with 409 additions and 0 deletions
@@ -0,0 +1,19 @@
// !LANGUAGE: +ContextReceivers
// TARGET_BACKEND: JVM_IR
// IGNORE_BACKEND_FIR: JVM_IR
// IGNORE_BACKEND: JVM
class Outer {
val x: Int = 1
}
context(Outer)
class Inner(arg: Any) {
fun bar() = x
}
fun f(outer: Outer) {
with(outer) {
Inner(3)
}
}