diff options
-rw-r--r-- | test/pending/neg/t0653.check | 5 | ||||
-rw-r--r-- | test/pending/neg/t0653.scala | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/test/pending/neg/t0653.check b/test/pending/neg/t0653.check new file mode 100644 index 0000000000..cb5ca65b8e --- /dev/null +++ b/test/pending/neg/t0653.check @@ -0,0 +1,5 @@ +t0653.scala:5: error: inferred the kinds of the type arguments (InL[Nothing,Nothing]) do not conform to the expected kinds of the type parameters (type Op) in class Fix. +InL[Nothing,Nothing]'s type parameters do not match type Op's expected parameters: class InL has two type parameters, but type Op has one + val zero = new Fix(new InL) + ^ +one error found diff --git a/test/pending/neg/t0653.scala b/test/pending/neg/t0653.scala new file mode 100644 index 0000000000..156aa2d701 --- /dev/null +++ b/test/pending/neg/t0653.scala @@ -0,0 +1,6 @@ +class InL[A, B] +class Fix[Op[A]](x : Op[Fix[Op]]) + +class FixTest { + val zero = new Fix(new InL) +} |