diff options
Diffstat (limited to 'test/pending/neg')
-rwxr-xr-x | test/pending/neg/bug432.scala | 2 | ||||
-rw-r--r-- | test/pending/neg/bug555.scala | 5 | ||||
-rw-r--r-- | test/pending/neg/bug556.scala | 4 | ||||
-rw-r--r-- | test/pending/neg/bug558.scala | 19 |
4 files changed, 30 insertions, 0 deletions
diff --git a/test/pending/neg/bug432.scala b/test/pending/neg/bug432.scala new file mode 100755 index 0000000000..8e3097ac9d --- /dev/null +++ b/test/pending/neg/bug432.scala @@ -0,0 +1,2 @@ +case class Tata +object Tata diff --git a/test/pending/neg/bug555.scala b/test/pending/neg/bug555.scala new file mode 100644 index 0000000000..26dbe6cc0d --- /dev/null +++ b/test/pending/neg/bug555.scala @@ -0,0 +1,5 @@ +object Main extends Application { + def tata = { + def titi = {} + } +} diff --git a/test/pending/neg/bug556.scala b/test/pending/neg/bug556.scala new file mode 100644 index 0000000000..4f4e905fbb --- /dev/null +++ b/test/pending/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/neg/bug558.scala b/test/pending/neg/bug558.scala new file mode 100644 index 0000000000..f88471f776 --- /dev/null +++ b/test/pending/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; + } +} |