diff options
Diffstat (limited to 'tests/untried/neg/t0345.scala')
-rw-r--r-- | tests/untried/neg/t0345.scala | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/untried/neg/t0345.scala b/tests/untried/neg/t0345.scala new file mode 100644 index 000000000..15b941bc4 --- /dev/null +++ b/tests/untried/neg/t0345.scala @@ -0,0 +1,15 @@ +object Lizt { + val empty = new Lizt[Nothing] { + def cons[A](a : A): Unit = {} + } +} + +trait Lizt[A] { + def cons(a : A) : Unit +} +class Test { + abstract class C[A] {} + val c = new C[Int] { + def f[A](x: A): Unit = {} + } + } |