diff options
Diffstat (limited to 'test/pending/pat_iuli.scala')
-rw-r--r-- | test/pending/pat_iuli.scala | 20 |
1 files changed, 20 insertions, 0 deletions
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 { +} |