okkero
fun foo(a: ClassA) { val b: ClassA.ClassB = with(a) { object : ClassA.ClassB() { } } println(b) }
Andreas Sinz
ClassA.ClassB()
ClassA
ClassB
with(a)
object: ClassA.ClassB()
A modern programming language that makes developers happier.