diff options
author | Lukas Rytz <lukas.rytz@epfl.ch> | 2011-05-05 15:27:57 +0000 |
---|---|---|
committer | Lukas Rytz <lukas.rytz@epfl.ch> | 2011-05-05 15:27:57 +0000 |
commit | c937fd95700bef739f012e2a11b84bc848f200be (patch) | |
tree | 8180b14c907ecbd6d7d2dffb62b111b236972b04 /test/files/neg | |
parent | 1c0df8f97ec740eca56e82049f42d2ab2ec45d73 (diff) | |
download | scala-c937fd95700bef739f012e2a11b84bc848f200be.tar.gz scala-c937fd95700bef739f012e2a11b84bc848f200be.tar.bz2 scala-c937fd95700bef739f012e2a11b84bc848f200be.zip |
close #4524 and close #4425, review by odersky.
Diffstat (limited to 'test/files/neg')
-rw-r--r-- | test/files/neg/t4425.check | 4 | ||||
-rw-r--r-- | test/files/neg/t4425.scala | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/test/files/neg/t4425.check b/test/files/neg/t4425.check new file mode 100644 index 0000000000..4ff4b1eec0 --- /dev/null +++ b/test/files/neg/t4425.check @@ -0,0 +1,4 @@ +t4425.scala:3: error: erroneous or inaccessible type + 42 match { case _ X _ => () } + ^ +one error found diff --git a/test/files/neg/t4425.scala b/test/files/neg/t4425.scala new file mode 100644 index 0000000000..d8cc6922f7 --- /dev/null +++ b/test/files/neg/t4425.scala @@ -0,0 +1,4 @@ +object Foo { + object X { def unapply(x : Int)(y : Option[Int] = None) = None } + 42 match { case _ X _ => () } +} |