Files
kotlin-fork/compiler/visualizer/testData/uncommonCases/testFiles/innerWith.kt
T
2021-03-19 18:30:15 +03:00

38 lines
444 B
Kotlin
Vendored

package p
class A {
val aProp = 10
fun call() {}
}
class B {
val bProp = 1
}
fun foo(a: Int, b: Int): Int {
with(A()) {
aProp
call()
with(B()) {
aProp
bProp
aProp
}
}
with(A()) {
aProp
with(B()) {
aProp
bProp
}
with(B()) {
aProp
bProp
}
}
return a
}