diff options
author | Burak Emir <emir@epfl.ch> | 2007-08-07 09:15:34 +0000 |
---|---|---|
committer | Burak Emir <emir@epfl.ch> | 2007-08-07 09:15:34 +0000 |
commit | d50a0095915c1d86edec691fdd187163037be7cb (patch) | |
tree | a95997977223b0239d8a463cf674257e5eb3ff6d /test | |
parent | a19af644d2a04ddaaa93252b33795debdcda7057 (diff) | |
download | scala-d50a0095915c1d86edec691fdd187163037be7cb.tar.gz scala-d50a0095915c1d86edec691fdd187163037be7cb.tar.bz2 scala-d50a0095915c1d86edec691fdd187163037be7cb.zip |
fixed #1215 unapply typing bug
Diffstat (limited to 'test')
-rw-r--r-- | test/files/pos/unapplyVal.scala | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/files/pos/unapplyVal.scala b/test/files/pos/unapplyVal.scala new file mode 100644 index 0000000000..3816152f20 --- /dev/null +++ b/test/files/pos/unapplyVal.scala @@ -0,0 +1,18 @@ +package test // bug #1215 + +class Async { + def unapply(scrut: Any): Option[Any] = None +} + +class Buffer { + val Put = new Async + //case class Put(x: int) + + def joinPat(x: Any): Unit = { + x match { + case Put => + case Put(y) => + println("returning "+y) + } + } +} |