summaryrefslogtreecommitdiff
path: root/test/files/neg/t5687.check
diff options
context:
space:
mode:
authorHubert Plociniczak <hubert.plociniczak@gmail.com>2012-08-06 18:48:52 +0200
committerHubert Plociniczak <hubert.plociniczak@gmail.com>2012-08-08 10:45:29 +0200
commit95b36489829c12eb323e6252a28bbf54b27b9977 (patch)
tree85b930d2c94d19aa0fa9a4fc368430c0e1a84f56 /test/files/neg/t5687.check
parent937da62be2834a646a31dbfb01527a82672f111e (diff)
downloadscala-95b36489829c12eb323e6252a28bbf54b27b9977.tar.gz
scala-95b36489829c12eb323e6252a28bbf54b27b9977.tar.bz2
scala-95b36489829c12eb323e6252a28bbf54b27b9977.zip
Fixes SI-5687.
Recover from erroneous type alias override to report more useful error message.
Diffstat (limited to 'test/files/neg/t5687.check')
-rw-r--r--test/files/neg/t5687.check8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/files/neg/t5687.check b/test/files/neg/t5687.check
new file mode 100644
index 0000000000..5096077ee5
--- /dev/null
+++ b/test/files/neg/t5687.check
@@ -0,0 +1,8 @@
+t5687.scala:4: error: type arguments [T] do not conform to class Template's type parameter bounds [T <: AnyRef]
+ type Repr[T]<:Template[T]
+ ^
+t5687.scala:20: error: overriding type Repr in class Template with bounds[T] <: Template[T];
+ type Repr has incompatible type
+ type Repr = CurveTemplate[T]
+ ^
+two errors found