aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/pos/homonym.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/pos/homonym.scala')
-rw-r--r--tests/untried/pos/homonym.scala6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/untried/pos/homonym.scala b/tests/untried/pos/homonym.scala
new file mode 100644
index 000000000..0836f7d6f
--- /dev/null
+++ b/tests/untried/pos/homonym.scala
@@ -0,0 +1,6 @@
+// bug #502
+class Foo(x: Int) {
+ def this() = this(0);
+}
+object Foo {
+}