package foo class A { constructor() /* primary */ { super/*Any*/() /* () */ } var prop: Int field = 0 get set } object B { private constructor() /* primary */ { super/*Any*/() /* () */ } var prop: Int field = 0 get set } val array: Array field = arrayOf(elements = [0]) get fun id(t: T): T { return t } fun main() { val a: A = A() id(t = a).( = 10) { // BLOCK val : A = id(t = a) .( = .().plus(other = 20)) } { // BLOCK val : A = id(t = a) .( = .().minus(other = 20)) } { // BLOCK val : A = id(t = a) .( = .().times(other = 2)) } { // BLOCK val : A = id(t = a) .( = .().div(other = 5)) } { // BLOCK val : A = id(t = a) .( = .().rem(other = 3)) } { // BLOCK val : A = id(t = a) val : Int = .() .( = .inc()) } /*~> Unit */ { // BLOCK val : A = id(t = a) val : Int = .() .( = .dec()) } /*~> Unit */ { // BLOCK val : A = id(t = a) .( = .().inc()) .() } /*~> Unit */ { // BLOCK val : A = id(t = a) .( = .().dec()) .() } /*~> Unit */ { // BLOCK val : Int = B.() B.( = .inc()) } /*~> Unit */ { // BLOCK val : Int = B.() B.( = .dec()) } /*~> Unit */ { // BLOCK B.( = B.().inc()) B.() } /*~> Unit */ { // BLOCK B.( = B.().dec()) B.() } /*~> Unit */ id>(t = ()).set(index = 0, value = 10) { // BLOCK val : Array = id>(t = ()) val : Int = 0 .set(index = , value = .get(index = ).plus(other = 20)) } { // BLOCK val : Array = id>(t = ()) val : Int = 0 .set(index = , value = .get(index = ).minus(other = 20)) } { // BLOCK val : Array = id>(t = ()) val : Int = 0 .set(index = , value = .get(index = ).times(other = 2)) } { // BLOCK val : Array = id>(t = ()) val : Int = 0 .set(index = , value = .get(index = ).div(other = 5)) } { // BLOCK val : Array = id>(t = ()) val : Int = 0 .set(index = , value = .get(index = ).rem(other = 3)) } val : Array = id>(t = ()) val : Int = 0 val : Int = .get(index = ) .set(index = , value = .inc()) /*~> Unit */ val : Array = id>(t = ()) val : Int = 0 val : Int = .get(index = ) .set(index = , value = .dec()) /*~> Unit */ val : Array = id>(t = ()) val : Int = 0 .set(index = , value = .get(index = ).inc()) .get(index = ) /*~> Unit */ val : Array = id>(t = ()) val : Int = 0 .set(index = , value = .get(index = ).dec()) .get(index = ) /*~> Unit */ val : Array = () val : Int = 0 val : Int = .get(index = ) .set(index = , value = .inc()) /*~> Unit */ val : Array = () val : Int = 0 val : Int = .get(index = ) .set(index = , value = .dec()) /*~> Unit */ val : Array = () val : Int = 0 .set(index = , value = .get(index = ).inc()) .get(index = ) /*~> Unit */ val : Array = () val : Int = 0 .set(index = , value = .get(index = ).dec()) .get(index = ) /*~> Unit */ }