diff options
author | Iulian Dragos <jaguarul@gmail.com> | 2010-11-02 18:01:54 +0000 |
---|---|---|
committer | Iulian Dragos <jaguarul@gmail.com> | 2010-11-02 18:01:54 +0000 |
commit | 3b0b4d7480627d3d19a5745a7163c5b9e3d8f16b (patch) | |
tree | eb09ccb78e8a18753dc5c42ff2c4b834233b7a82 /test/files/run/duplicate-meth.scala | |
parent | 8e320487627e85cce44a4eab0d77d28fd0904d50 (diff) | |
download | scala-3b0b4d7480627d3d19a5745a7163c5b9e3d8f16b.tar.gz scala-3b0b4d7480627d3d19a5745a7163c5b9e3d8f16b.tar.bz2 scala-3b0b4d7480627d3d19a5745a7163c5b9e3d8f16b.zip |
Closes #3973. Review by extempore.
Diffstat (limited to 'test/files/run/duplicate-meth.scala')
-rw-r--r-- | test/files/run/duplicate-meth.scala | 23 |
1 files changed, 23 insertions, 0 deletions
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!") + } +} |