Support static method references

#KT-5123 Fixed
This commit is contained in:
Alexander Udalov
2014-09-26 17:05:43 +04:00
parent 19497262b3
commit cd0551078c
10 changed files with 96 additions and 4 deletions

View File

@@ -0,0 +1,9 @@
enum class E {
ENTRY
}
fun box(): String {
val f = E::valueOf
val result = f("ENTRY")
return if (result == E.ENTRY) "OK" else "Fail $result"
}