dhkim
09/28/2016, 3:26 PMclass Test {
val byte: Byte = 10
val int: Int = 11
val short: Short = 20
val string: String = "asdfasd"
}
fun test1(accessor: Test.() -> Int): Int {
val i: Int = Test().accessor()
return i + 10
}
fun test2(): Int {
val i: Int = Test().let { <http://it.int|it.int> }
return i + 10
}