From 238f90bea86d44cc0491cc00d07ef5e0a517e7b9 Mon Sep 17 00:00:00 2001 From: Burak Emir Date: Tue, 5 Sep 2006 16:29:42 +0000 Subject: test cases --- test/pending/pat_iuli.scala | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 test/pending/pat_iuli.scala (limited to 'test/pending/pat_iuli.scala') diff --git a/test/pending/pat_iuli.scala b/test/pending/pat_iuli.scala new file mode 100644 index 0000000000..1395f60cd2 --- /dev/null +++ b/test/pending/pat_iuli.scala @@ -0,0 +1,20 @@ +trait Ops requires MyCodes { + abstract class Instru + object opcodes { + case class SWITCH(i:Int) extends Instru + } +} + +trait Blox requires MyCodes { + import opcodes._ + class Basick { + var foo: Instru = null + + def bar = foo match { + case SWITCH(i) => i + } + } +} + +abstract class MyCodes extends AnyRef with Ops with Blox { +} -- cgit v1.2.3