aboutsummaryrefslogtreecommitdiff
path: root/tests/pending/run/t1537.scala
blob: 1dce501990963fe576fec353feaffb1930f3bee5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
trait Syntax {
  object Foo
}

trait Evaluation {
  val syntax: Syntax

  def equalInTrait = this.syntax.Foo == this.syntax.Foo
}

object Test extends Evaluation with App {
  object syntax extends Syntax

  def equalInObject = this.syntax.Foo == this.syntax.Foo

  println(equalInTrait)
  println(equalInObject)
}