diff options
author | michelou <michelou@epfl.ch> | 2006-11-29 13:11:31 +0000 |
---|---|---|
committer | michelou <michelou@epfl.ch> | 2006-11-29 13:11:31 +0000 |
commit | f9da023c4e7d57e38ba0041e0ee31b9ee46ec4a9 (patch) | |
tree | 46e7bc64451aec5325e0d06a671cd5b549ab29fd /test/files/res/bug831 | |
parent | 50c411759b491a88d7ffca8fcda9bce9d22ac22c (diff) | |
download | scala-f9da023c4e7d57e38ba0041e0ee31b9ee46ec4a9.tar.gz scala-f9da023c4e7d57e38ba0041e0ee31b9ee46ec4a9.tar.bz2 scala-f9da023c4e7d57e38ba0041e0ee31b9ee46ec4a9.zip |
renamed directory 'resident' to match '--res' o...
renamed directory 'resident' to match '--res' option
Diffstat (limited to 'test/files/res/bug831')
-rw-r--r-- | test/files/res/bug831/NewScalaParserXXX.scala | 43 | ||||
-rw-r--r-- | test/files/res/bug831/NewScalaTestXXX.scala | 2 |
2 files changed, 45 insertions, 0 deletions
diff --git a/test/files/res/bug831/NewScalaParserXXX.scala b/test/files/res/bug831/NewScalaParserXXX.scala new file mode 100644 index 0000000000..88c81637f0 --- /dev/null +++ b/test/files/res/bug831/NewScalaParserXXX.scala @@ -0,0 +1,43 @@ +package bug831; + +trait ScalaNodeScannerXXX { + type Node <: NodeImpl; + trait NodeImpl { def self : Node; } + type Unfixed <: Node with UnfixedImpl; + trait UnfixedImpl extends NodeImpl { def self : Unfixed; } +} +//def f = { Console.println("hello"); 42; } +//for (val ns <-n; val i <- 0.until(ns)) yield f; + + +trait NewScalaScannerXXX extends ScalaNodeScannerXXX { + type Unfixed <: Node with UnfixedImpl; + trait UnfixedImpl extends super.UnfixedImpl with NodeImpl; + type Statement <: Unfixed with StatementImpl; + trait StatementImpl extends UnfixedImpl { def self : Statement; } + type NewLine <: Statement with NewLineImpl; + trait NewLineImpl extends StatementImpl { + def self : NewLine; + def isActive : Boolean = true; + } + object ArrowMode extends Enumeration { val Def, Case, Expr = Value } +} + +trait ScalaPrecedenceXXX extends NewScalaScannerXXX { + type NewLine <: Statement with NewLineImpl; + trait NewLineImpl extends super.NewLineImpl with StatementImpl { + def self : NewLine; + override def isActive = super[NewLineImpl].isActive; + } +} +trait NewScalaParserXXX extends NewScalaScannerXXX with ScalaPrecedenceXXX { + type NewLine <: Statement with NewLineImpl; + trait MyNewLine extends super[NewScalaScannerXXX].NewLineImpl; + trait NewLineImpl extends MyNewLine with + super[ScalaPrecedenceXXX].NewLineImpl with + StatementImpl { + def self : NewLine; + override def isActive = super[MyNewLine].isActive; + } +} + diff --git a/test/files/res/bug831/NewScalaTestXXX.scala b/test/files/res/bug831/NewScalaTestXXX.scala new file mode 100644 index 0000000000..e5cc79970f --- /dev/null +++ b/test/files/res/bug831/NewScalaTestXXX.scala @@ -0,0 +1,2 @@ +package bug831; +abstract class NewScalaTestXXX extends NewScalaParserXXX;
\ No newline at end of file |