Support Array::class literal, forbid Array<X>::class on non-JVM
#KT-31230 Fixed
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
// !LANGUAGE: +BareArrayClassLiteral
|
||||
|
||||
fun box(): String {
|
||||
val x = Array(1) { Any() }
|
||||
if (x::class != Array::class) return "Fail"
|
||||
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user