From f3cf0544326e246cd6ecd1632ad43facc437e9d2 Mon Sep 17 00:00:00 2001 From: Burak Emir Date: Sun, 14 Jan 2007 01:33:08 +0000 Subject: lib Seq.scala: fixed unapply method nsc Trees.scala: Transformer is homomorphism for UnApply ExplOuter: removed System.exit for debug (oops, this annoys Eclipse users) TransM: case UnApply for isRegularPattern GenICode: error msg gives compilation unit, too --- test/pending/pos/unapplyContexts2.scala | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/pending/pos/unapplyContexts2.scala (limited to 'test/pending/pos') diff --git a/test/pending/pos/unapplyContexts2.scala b/test/pending/pos/unapplyContexts2.scala new file mode 100644 index 0000000000..fcf1e2ff62 --- /dev/null +++ b/test/pending/pos/unapplyContexts2.scala @@ -0,0 +1,11 @@ +trait Analyzer { + val WILDCARD = "23" +} + +trait Contexts2 requires Analyzer { + class Context { + def collect(sels: List[String]): List[String] = sels match { + case List(WILDCARD) => val dummy = WILDCARD; Nil + } + } +} -- cgit v1.2.3