From e858e292e5871848c8665ebad177a6592aeec740 Mon Sep 17 00:00:00 2001 From: mihaylov Date: Tue, 28 Mar 2006 14:43:41 +0000 Subject: moved pending/ to test/ --- test/pending/files/neg/bug432.scala | 2 ++ test/pending/files/neg/bug555.scala | 5 +++++ test/pending/files/neg/bug556.scala | 4 ++++ test/pending/files/neg/bug558.scala | 19 +++++++++++++++++++ test/pending/files/run/retsynch.check | 1 + test/pending/files/run/retsynch.scala | 11 +++++++++++ 6 files changed, 42 insertions(+) create mode 100755 test/pending/files/neg/bug432.scala create mode 100644 test/pending/files/neg/bug555.scala create mode 100644 test/pending/files/neg/bug556.scala create mode 100644 test/pending/files/neg/bug558.scala create mode 100644 test/pending/files/run/retsynch.check create mode 100644 test/pending/files/run/retsynch.scala (limited to 'test') diff --git a/test/pending/files/neg/bug432.scala b/test/pending/files/neg/bug432.scala new file mode 100755 index 0000000000..8e3097ac9d --- /dev/null +++ b/test/pending/files/neg/bug432.scala @@ -0,0 +1,2 @@ +case class Tata +object Tata diff --git a/test/pending/files/neg/bug555.scala b/test/pending/files/neg/bug555.scala new file mode 100644 index 0000000000..26dbe6cc0d --- /dev/null +++ b/test/pending/files/neg/bug555.scala @@ -0,0 +1,5 @@ +object Main extends Application { + def tata = { + def titi = {} + } +} diff --git a/test/pending/files/neg/bug556.scala b/test/pending/files/neg/bug556.scala new file mode 100644 index 0000000000..4f4e905fbb --- /dev/null +++ b/test/pending/files/neg/bug556.scala @@ -0,0 +1,4 @@ +object Main extends Application { + def f(a:Int=>Int):Int = a(4) + def g:Int = f((x,y)=>x) +} diff --git a/test/pending/files/neg/bug558.scala b/test/pending/files/neg/bug558.scala new file mode 100644 index 0000000000..f88471f776 --- /dev/null +++ b/test/pending/files/neg/bug558.scala @@ -0,0 +1,19 @@ +package scala.tools.nsc.models; +import scala.tools.util._; + +abstract class NewModel { + abstract class SymbolURL { + val top : RootURL; + val name : String; + val source : AbstractFile; + } + abstract class NodeURL extends SymbolURL { + val parent : SymbolURL; + final val top = parent.top; + final val source = top.file; + + } + abstract class RootURL extends SymbolURL { + final val top : RootURL = this; + } +} diff --git a/test/pending/files/run/retsynch.check b/test/pending/files/run/retsynch.check new file mode 100644 index 0000000000..8c40598f93 --- /dev/null +++ b/test/pending/files/run/retsynch.check @@ -0,0 +1 @@ +abs(-5) = 5 diff --git a/test/pending/files/run/retsynch.scala b/test/pending/files/run/retsynch.scala new file mode 100644 index 0000000000..d6398cf28e --- /dev/null +++ b/test/pending/files/run/retsynch.scala @@ -0,0 +1,11 @@ +object Test { + def abs(x:int): int = synchronized { + if(x > 0) + return x + return -x + } + + def main(args: Array[String]) = { + Console.println("abs(-5) = " + abs(-5)) + } +} -- cgit v1.2.3