diff options
author | Martin Odersky <odersky@gmail.com> | 2016-02-15 19:17:04 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2016-02-17 18:39:47 +0100 |
commit | 203dfaa2a7165340a43a4a1ca921df187067e188 (patch) | |
tree | 6c1375e017f637cc2078fc18a85bd04c446dcca6 /tests/run | |
parent | bb60d3c43bd42d24b54d5cad0dcfdb50cbdd5782 (diff) | |
download | dotty-203dfaa2a7165340a43a4a1ca921df187067e188.tar.gz dotty-203dfaa2a7165340a43a4a1ca921df187067e188.tar.bz2 dotty-203dfaa2a7165340a43a4a1ca921df187067e188.zip |
Reinstantiate t920
Got deleted by accident. Version in run has object
renamed to prevent case clashes on MacOS. Version that
exhibits the clash is in pending/run.
Diffstat (limited to 'tests/run')
-rw-r--r-- | tests/run/t920.scala | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/run/t920.scala b/tests/run/t920.scala new file mode 100644 index 000000000..d42388c4a --- /dev/null +++ b/tests/run/t920.scala @@ -0,0 +1,24 @@ +object Test { + trait A; + trait Foo0 { def foo : A; } + trait Baz extends Foo0; + trait B extends A { + def initialize = { + trait Foo extends Test.Foo0 { + def foo : B.this.type = B.this; + } + class baz extends Baz with Foo { + override def toString = "baz" + } + Console.println(new baz); + } + } + object bb extends B; + def main(args : Array[String]) : Unit = { + bb.initialize; + } +} + + + + |