Support Array::class literal, forbid Array<X>::class on non-JVM

#KT-31230 Fixed
This commit is contained in:
Alexander Udalov
2019-05-02 18:34:20 +02:00
parent 8103f0ba60
commit f38e4d618e
15 changed files with 156 additions and 13 deletions
@@ -0,0 +1,8 @@
// !LANGUAGE: +BareArrayClassLiteral
fun box(): String {
val x = Array(1) { Any() }
if (x::class != Array::class) return "Fail"
return "OK"
}