diff options
Diffstat (limited to 'test/files/pos')
-rw-r--r-- | test/files/pos/bug803.scala | 2 | ||||
-rw-r--r-- | test/files/pos/bug805.scala | 19 | ||||
-rw-r--r-- | test/files/pos/bug812.scala | 7 |
3 files changed, 28 insertions, 0 deletions
diff --git a/test/files/pos/bug803.scala b/test/files/pos/bug803.scala new file mode 100644 index 0000000000..066abecffa --- /dev/null +++ b/test/files/pos/bug803.scala @@ -0,0 +1,2 @@ +class B(x : () => Int) +class A(i : Int) extends B(() => i) { i } diff --git a/test/files/pos/bug805.scala b/test/files/pos/bug805.scala new file mode 100644 index 0000000000..37bf6b5ef8 --- /dev/null +++ b/test/files/pos/bug805.scala @@ -0,0 +1,19 @@ +trait MatcherYYY { + trait NodeImpl; + trait Matchable extends NodeImpl { + protected def doMatch : Unit = {} + } +} +trait BraceMatcherXXX extends MatcherYYY { + trait NodeImpl extends super.NodeImpl { + def doMatch (braces : BracePair) : Unit + } + trait BracePair { + trait BraceImpl extends NodeImpl with Matchable { + override def doMatch : Unit = { + super.doMatch; + (); + } + } + } +} diff --git a/test/files/pos/bug812.scala b/test/files/pos/bug812.scala new file mode 100644 index 0000000000..ccbe6db5ce --- /dev/null +++ b/test/files/pos/bug812.scala @@ -0,0 +1,7 @@ +package test; +import scala.{Application => Main}; +class Test extends Main { + import test.{Test => Hello} + super[Application].executionStart; + private[Test] def xxx = 10; +} |