Skip to content

Instantly share code, notes, and snippets.

@abreslav
Created January 22, 2014 06:26
Embed
What would you like to do?
class Bar {
fun invoke(x: Int): Int = x
}
class Foo {
val get: Bar = Bar()
}
fun foo () {
Foo().get(1)
Foo()[1]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment