mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
Support KClass.simpleName and built-in class literals
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
public class javaClassLiteral {
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import javaClassLiteral as J
|
||||
|
||||
fun box(): String {
|
||||
val j = J::class
|
||||
if (j.simpleName != "javaClassLiteral") return "Fail: ${j.simpleName}"
|
||||
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user