diff options
author | Burak Emir <emir@epfl.ch> | 2006-09-05 16:29:42 +0000 |
---|---|---|
committer | Burak Emir <emir@epfl.ch> | 2006-09-05 16:29:42 +0000 |
commit | 238f90bea86d44cc0491cc00d07ef5e0a517e7b9 (patch) | |
tree | 5e5fe1372ca1490b4ffb159570cf1d452ceb8b3f /test/pending | |
parent | 0a4e7a8116310bc31b8b02657c607dedd8cc53e3 (diff) | |
download | scala-238f90bea86d44cc0491cc00d07ef5e0a517e7b9.tar.gz scala-238f90bea86d44cc0491cc00d07ef5e0a517e7b9.tar.bz2 scala-238f90bea86d44cc0491cc00d07ef5e0a517e7b9.zip |
test cases
Diffstat (limited to 'test/pending')
-rw-r--r-- | test/pending/pat_gilles.scala | 17 | ||||
-rw-r--r-- | test/pending/pat_iuli.scala | 20 |
2 files changed, 37 insertions, 0 deletions
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 { +} |