added CHECK_TYPE directive to diagnostic tests
This commit is contained in:
+2
-3
@@ -1,8 +1,7 @@
|
||||
class TypeOf<T>(t: T)
|
||||
|
||||
// !CHECK_TYPE
|
||||
fun <T> id(t: T) = t
|
||||
|
||||
fun foo() {
|
||||
val i = id { 22 } //type inference error: no information for parameter
|
||||
TypeOf(i): TypeOf<()->Int>
|
||||
i checkType { it : _<()->Int> }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user