Prohibit Array::class, require type arguments for reified parameters
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
val Array<String>.firstElement: String get() = get(0)
|
||||
|
||||
fun box(): String {
|
||||
val p = Array<String>::firstElement
|
||||
return p.get(array("OK", "Fail"))
|
||||
}
|
||||
Reference in New Issue
Block a user