summaryrefslogtreecommitdiff
path: root/test/files/neg/bug558.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/bug558.scala')
-rw-r--r--test/files/neg/bug558.scala19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/files/neg/bug558.scala b/test/files/neg/bug558.scala
new file mode 100644
index 0000000000..f88471f776
--- /dev/null
+++ b/test/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;
+ }
+}