diff options
author | Hubert Plociniczak <hubert.plociniczak@epfl.ch> | 2010-11-02 00:14:58 +0000 |
---|---|---|
committer | Hubert Plociniczak <hubert.plociniczak@epfl.ch> | 2010-11-02 00:14:58 +0000 |
commit | b9982a3d3d338d097fbee082c5f6778f6494f5cd (patch) | |
tree | 872b3ecb57a53490bd689fa6643474affad5eb62 /test/files/run/t1537.scala | |
parent | 62614a6f9f7c335cf53f464ce272ac05979f5647 (diff) | |
download | scala-b9982a3d3d338d097fbee082c5f6778f6494f5cd.tar.gz scala-b9982a3d3d338d097fbee082c5f6778f6494f5cd.tar.bz2 scala-b9982a3d3d338d097fbee082c5f6778f6494f5cd.zip |
Closes #3932, #1537. Review by extempore
Diffstat (limited to 'test/files/run/t1537.scala')
-rw-r--r-- | test/files/run/t1537.scala | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/files/run/t1537.scala b/test/files/run/t1537.scala new file mode 100644 index 0000000000..9776f4a279 --- /dev/null +++ b/test/files/run/t1537.scala @@ -0,0 +1,18 @@ +trait Syntax { + object Foo +} + +trait Evaluation { + val syntax: Syntax + + def equalInTrait = this.syntax.Foo == this.syntax.Foo +} + +object Test extends Evaluation with Application { + object syntax extends Syntax + + def equalInObject = this.syntax.Foo == this.syntax.Foo + + println(equalInTrait) + println(equalInObject) +} |