Bound callable references.
This commit is contained in:
committed by
Dmitry Petrov
parent
0da4c08520
commit
e23325b014
@@ -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
|
||||
Reference in New Issue
Block a user