Add intrinsic for KCallable.name property Fixes #KT-11531

This commit is contained in:
Kirill Rakhman
2016-04-22 20:54:49 +02:00
committed by Alexander Udalov
parent b8e2533b58
commit 4a619db721
6 changed files with 96 additions and 16 deletions
@@ -0,0 +1,10 @@
class A {
val a = ""
fun b() = ""
fun test() {
val a = A::a.name
val b = A::b.name
val c = ::A.name
}
}
@@ -0,0 +1,8 @@
@kotlin.Metadata
public final class A {
private final @org.jetbrains.annotations.NotNull field a: java.lang.String
public method <init>(): void
public final @org.jetbrains.annotations.NotNull method b(): java.lang.String
public final @org.jetbrains.annotations.NotNull method getA(): java.lang.String
public final method test(): void
}