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_gilles.scala | 17 +++++++++++++++++ test/pending/pat_iuli.scala | 20 ++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 test/pending/pat_gilles.scala create mode 100644 test/pending/pat_iuli.scala (limited to 'test') diff --git a/test/pending/pat_gilles.scala b/test/pending/pat_gilles.scala new file mode 100644 index 0000000000..0ceea51cbb --- /dev/null +++ b/test/pending/pat_gilles.scala @@ -0,0 +1,17 @@ +abstract class Table2 { + + + val x: Any => Unit = { zz:Any => + zz match { + case Table2.CellUpdated(row, column) => + val foo = Table2.CellUpdated(2,2) + Console.println("cuckoo") + }} + +} + +object Table2 { + + case class CellUpdated(row: Int, column: Int) + +} 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