Pleasantly surprised that this works: ``` val ...
# announcements
i
Pleasantly surprised that this works:
Copy code
val aList = ArrayList<Int>()
    with ("a string") {
        with (aList) {
            add(length) // Adds the length of "a string" to aList
        }
    }
Interestingly, no error occurs if there is a matching method on both receiver types - I’m guessing in this case the inner receiver-type takes precedence?