aboutsummaryrefslogtreecommitdiff
path: root/tests/neg
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2014-03-16 18:39:36 +0100
committerTobias Schlatter <tobias@meisch.ch>2014-03-21 11:24:03 +0100
commit6436fa67e561442ef2e2d9b99852a50f323ccacc (patch)
tree9063ea5a0df1f01fb69ef64dcf0ef638e63f54e2 /tests/neg
parent6f1ef32d728320c31cc59daad0f4849c9cd0a87c (diff)
downloaddotty-6436fa67e561442ef2e2d9b99852a50f323ccacc.tar.gz
dotty-6436fa67e561442ef2e2d9b99852a50f323ccacc.tar.bz2
dotty-6436fa67e561442ef2e2d9b99852a50f323ccacc.zip
More tests
Added more tests which all pass, except for tests in disabled and pending. t0694 went from pos to neg, because the kind of alias type used in t0695 is no longer supported.
Diffstat (limited to 'tests/neg')
-rw-r--r--tests/neg/t0654.scala5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/neg/t0654.scala b/tests/neg/t0654.scala
new file mode 100644
index 000000000..52dbbb014
--- /dev/null
+++ b/tests/neg/t0654.scala
@@ -0,0 +1,5 @@
+object Test {
+ class Foo[T]
+ type C[T] = Foo[_ <: T] // error: parameter type T of type alias does not appear as type argument of the aliased class Foo
+ val a: C[AnyRef] = new Foo[AnyRef] // follow-on error: wrong number of type arguments for Test.C, should be 0
+}