added CHECK_TYPE directive to diagnostic tests
This commit is contained in:
+3
-5
@@ -1,11 +1,9 @@
|
||||
// !CHECK_TYPE
|
||||
trait Tr<T> {
|
||||
var v: Tr<T>
|
||||
}
|
||||
|
||||
fun test(t: Tr<*>) {
|
||||
t.v = t
|
||||
val v = TypeOf(t.v)
|
||||
v: TypeOf<Tr<*>>
|
||||
}
|
||||
|
||||
class TypeOf<T>(t: T)
|
||||
t.v checkType { it : _<Tr<*>> }
|
||||
}
|
||||
+3
-5
@@ -1,4 +1,5 @@
|
||||
// !DIAGNOSTICS: -UNREACHABLE_CODE -UNUSED_PARAMETER
|
||||
// !CHECK_TYPE
|
||||
// t is unused due to KT-4233
|
||||
trait Tr<T> {
|
||||
var v: T
|
||||
@@ -6,8 +7,5 @@ trait Tr<T> {
|
||||
|
||||
fun test(t: Tr<*>) {
|
||||
<!SETTER_PROJECTED_OUT!>t.v<!> = null!!
|
||||
val v = TypeOf(t.v)
|
||||
v: TypeOf<Any?>
|
||||
}
|
||||
|
||||
class TypeOf<T>(t: T)
|
||||
t.v checkType { it : _<Any?> }
|
||||
}
|
||||
Reference in New Issue
Block a user