diff options
author | NAME <USER@epfl.ch> | 2008-03-31 13:36:09 +0000 |
---|---|---|
committer | NAME <USER@epfl.ch> | 2008-03-31 13:36:09 +0000 |
commit | cb817b325313146a048b306ac1a948a46fadbd63 (patch) | |
tree | 4331159989555e5cf8ef8d3470079b1b6e4d7247 /test/pending/neg | |
parent | b59e5237c1c93c60e5ac68711b41625ace560a4f (diff) | |
download | scala-cb817b325313146a048b306ac1a948a46fadbd63.tar.gz scala-cb817b325313146a048b306ac1a948a46fadbd63.tar.bz2 scala-cb817b325313146a048b306ac1a948a46fadbd63.zip |
Pending test for #653
Diffstat (limited to 'test/pending/neg')
-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) +} |