Test for KT-398 Internal error when property initializes with function
This commit is contained in:
@@ -0,0 +1,11 @@
|
|||||||
|
// KT-398 Internal error when property initializes with function
|
||||||
|
|
||||||
|
class X<T>() {
|
||||||
|
val check = { (a : Any) => a is T }
|
||||||
|
}
|
||||||
|
|
||||||
|
fun box() : String {
|
||||||
|
if(X<String>().check(10)) return "fail"
|
||||||
|
if(!X<String>().check("lala")) return "fail"
|
||||||
|
return "OK"
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user