summaryrefslogblamecommitdiff
path: root/test/files/neg/t9361.check
blob: 847d137f7d6c387f2a0d291a9cb776f04fe5aedd (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                                 
t9361.scala:4: error: type mismatch;
 found   : Tc[_$2] where type _$2
 required: Nothing[]
    new Foo { def tc = null.asInstanceOf[Tc[_]] }
                                        ^
t9361.scala:4: error: type mismatch;
 found   : Foo[Nothing]
 required: Foo[Tc]{type T = Nothing}
    new Foo { def tc = null.asInstanceOf[Tc[_]] }
    ^
two errors found