diff options
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) +} |