diff options
author | Martin Odersky <odersky@gmail.com> | 2006-03-27 17:27:51 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2006-03-27 17:27:51 +0000 |
commit | a959828b60b7bacbdeff23f0ac1b7304d416df54 (patch) | |
tree | e8ba00a1729697d096a5bf50ad2081b5bf344ccb /pending | |
parent | 20978ce7ae2c5db051cea483f2247c30f0e816ec (diff) | |
download | scala-a959828b60b7bacbdeff23f0ac1b7304d416df54.tar.gz scala-a959828b60b7bacbdeff23f0ac1b7304d416df54.tar.bz2 scala-a959828b60b7bacbdeff23f0ac1b7304d416df54.zip |
fixed bug 556
Diffstat (limited to 'pending')
-rw-r--r-- | pending/files/neg/bug555.scala | 5 | ||||
-rw-r--r-- | pending/files/neg/bug556.scala | 4 | ||||
-rw-r--r-- | pending/files/neg/bug558.scala | 19 |
3 files changed, 28 insertions, 0 deletions
diff --git a/pending/files/neg/bug555.scala b/pending/files/neg/bug555.scala new file mode 100644 index 0000000000..26dbe6cc0d --- /dev/null +++ b/pending/files/neg/bug555.scala @@ -0,0 +1,5 @@ +object Main extends Application { + def tata = { + def titi = {} + } +} diff --git a/pending/files/neg/bug556.scala b/pending/files/neg/bug556.scala new file mode 100644 index 0000000000..4f4e905fbb --- /dev/null +++ b/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/pending/files/neg/bug558.scala b/pending/files/neg/bug558.scala new file mode 100644 index 0000000000..f88471f776 --- /dev/null +++ b/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; + } +} |