diff options
author | Miles Sabin <miles@milessabin.com> | 2016-05-14 14:12:43 +0100 |
---|---|---|
committer | Miles Sabin <miles@milessabin.com> | 2016-05-14 14:12:43 +0100 |
commit | 45e607d3879623d5163f47c17c717904f6867ef6 (patch) | |
tree | 86b5be52bbbe3e03104a78ba93f1218998b4e2da /test/files/neg/t9361.check | |
parent | 9e30bee0c9363f6cf36a7b65ddbaaa225b57d6a9 (diff) | |
download | scala-45e607d3879623d5163f47c17c717904f6867ef6.tar.gz scala-45e607d3879623d5163f47c17c717904f6867ef6.tar.bz2 scala-45e607d3879623d5163f47c17c717904f6867ef6.zip |
SI-9361 fixed assert allowing display of improved error message.
Diffstat (limited to 'test/files/neg/t9361.check')
-rw-r--r-- | test/files/neg/t9361.check | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/files/neg/t9361.check b/test/files/neg/t9361.check new file mode 100644 index 0000000000..847d137f7d --- /dev/null +++ b/test/files/neg/t9361.check @@ -0,0 +1,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 |