summaryrefslogtreecommitdiff
path: root/test/files/run/trait-static-clash.scala
blob: 603cf6b6e5443e1dfb12e6d0ed42fd8337471f31 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
trait T {
        def foo = 1
        def foo(t: T) = 2
}
object Test extends T {
        def main(args: Array[String]) {
                assert(foo == 1)
                assert(foo(this) == 2)
        }
}