Skip to content

Instantly share code, notes, and snippets.

@abreslav
Created January 22, 2014 06:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save abreslav/8554279 to your computer and use it in GitHub Desktop.
Save abreslav/8554279 to your computer and use it in GitHub Desktop.
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