summaryrefslogtreecommitdiff
path: root/test/files/run
diff options
context:
space:
mode:
authorIulian Dragos <jaguarul@gmail.com>2010-11-02 18:01:54 +0000
committerIulian Dragos <jaguarul@gmail.com>2010-11-02 18:01:54 +0000
commit3b0b4d7480627d3d19a5745a7163c5b9e3d8f16b (patch)
treeeb09ccb78e8a18753dc5c42ff2c4b834233b7a82 /test/files/run
parent8e320487627e85cce44a4eab0d77d28fd0904d50 (diff)
downloadscala-3b0b4d7480627d3d19a5745a7163c5b9e3d8f16b.tar.gz
scala-3b0b4d7480627d3d19a5745a7163c5b9e3d8f16b.tar.bz2
scala-3b0b4d7480627d3d19a5745a7163c5b9e3d8f16b.zip
Closes #3973. Review by extempore.
Diffstat (limited to 'test/files/run')
-rw-r--r--test/files/run/duplicate-meth.check1
-rw-r--r--test/files/run/duplicate-meth.scala23
2 files changed, 24 insertions, 0 deletions
diff --git a/test/files/run/duplicate-meth.check b/test/files/run/duplicate-meth.check
new file mode 100644
index 0000000000..0992502806
--- /dev/null
+++ b/test/files/run/duplicate-meth.check
@@ -0,0 +1 @@
+verified!
diff --git a/test/files/run/duplicate-meth.scala b/test/files/run/duplicate-meth.scala
new file mode 100644
index 0000000000..40c0d3d676
--- /dev/null
+++ b/test/files/run/duplicate-meth.scala
@@ -0,0 +1,23 @@
+
+trait Base {
+ private val secure_# = 10l
+}
+
+class TestUser extends Base {
+ def clsMeth(x: Int) = x
+ private def foo(x: Int) = x
+}
+
+object TestUser extends TestUser {
+ def objMeth = "a"
+
+ private def foo(x: Int) = x
+}
+
+object Test {
+ def main(args: Array[String]) {
+ TestUser.objMeth
+ // no-op, just check that it passes verification
+ println("verified!")
+ }
+}