summaryrefslogtreecommitdiff
path: root/test/files/run/trait-static-clash.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/trait-static-clash.scala')
-rw-r--r--test/files/run/trait-static-clash.scala10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/files/run/trait-static-clash.scala b/test/files/run/trait-static-clash.scala
new file mode 100644
index 0000000000..603cf6b6e5
--- /dev/null
+++ b/test/files/run/trait-static-clash.scala
@@ -0,0 +1,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)
+ }
+}