Reflection literals (no bound member references yet).
This commit is contained in:
committed by
Dmitry Petrov
parent
8b95992af1
commit
3c0cce4c48
@@ -0,0 +1,13 @@
|
||||
class A {
|
||||
fun foo() {}
|
||||
}
|
||||
fun bar() {}
|
||||
val qux = 42
|
||||
|
||||
val test1 = A::class
|
||||
val test2 = qux::class
|
||||
val test3 = A::foo
|
||||
val test4 = ::A
|
||||
val test5 = A()::foo
|
||||
val test6 = ::bar
|
||||
val test7 = ::qux
|
||||
Reference in New Issue
Block a user