added CHECK_TYPE directive to diagnostic tests

This commit is contained in:
Svetlana Isakova
2013-12-18 16:11:56 +04:00
parent c9a600a405
commit dd6940be41
14 changed files with 95 additions and 59 deletions
@@ -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<*>> }
}