summaryrefslogtreecommitdiff
path: root/test/files/neg/t5564.check
diff options
context:
space:
mode:
authorAleksandar Prokopec <aleksandar@aleksandar-Latitude-E6500.(none)>2012-05-08 17:36:20 +0200
committerAleksandar Prokopec <aleksandar@aleksandar-Latitude-E6500.(none)>2012-05-08 17:36:20 +0200
commitd107527434b6cdf5f3ec6900a9572d6a6e3e5629 (patch)
treeed7945bb9b3084dd648157a574065b626e080fe1 /test/files/neg/t5564.check
parentc4590b799adbd398bb226de5893eb72bba127ed4 (diff)
downloadscala-d107527434b6cdf5f3ec6900a9572d6a6e3e5629.tar.gz
scala-d107527434b6cdf5f3ec6900a9572d6a6e3e5629.tar.bz2
scala-d107527434b6cdf5f3ec6900a9572d6a6e3e5629.zip
Fixes SI-5564.
Catching typer errors in specialization.
Diffstat (limited to 'test/files/neg/t5564.check')
-rw-r--r--test/files/neg/t5564.check4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/files/neg/t5564.check b/test/files/neg/t5564.check
new file mode 100644
index 0000000000..e7e13ccc9c
--- /dev/null
+++ b/test/files/neg/t5564.check
@@ -0,0 +1,4 @@
+t5564.scala:8: error: inferred type arguments [A] do not conform to method bar's type parameter bounds [B >: A <: C]
+ def bar[B >: A <: C]: T = throw new Exception
+ ^
+one error found