From 0ef0f40ae31bf8a1e3d5b9c6eea7ef5b5a073192 Mon Sep 17 00:00:00 2001 From: Burak Emir Date: Wed, 24 Jan 2007 15:20:25 +0000 Subject: moved working tests to files --- test/files/pos/unapplyContexts2.scala | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/files/pos/unapplyContexts2.scala (limited to 'test/files/pos/unapplyContexts2.scala') diff --git a/test/files/pos/unapplyContexts2.scala b/test/files/pos/unapplyContexts2.scala new file mode 100644 index 0000000000..fcf1e2ff62 --- /dev/null +++ b/test/files/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