Bound callable references.

This commit is contained in:
Dmitry Petrov
2016-09-07 12:31:34 +03:00
committed by Dmitry Petrov
parent 0da4c08520
commit e23325b014
5 changed files with 61 additions and 4 deletions
@@ -0,0 +1,12 @@
class A {
fun foo() {}
val bar = 0
}
fun A.qux() {}
val test1 = A()::foo
val test2 = A()::bar
val test3 = A()::qux