diff options
Diffstat (limited to 'test/files/run')
-rw-r--r-- | test/files/run/t5040.check | 1 | ||||
-rw-r--r-- | test/files/run/t5040.scala | 11 |
2 files changed, 12 insertions, 0 deletions
diff --git a/test/files/run/t5040.check b/test/files/run/t5040.check new file mode 100644 index 0000000000..3f7b5908a9 --- /dev/null +++ b/test/files/run/t5040.check @@ -0,0 +1 @@ +applyDynamic diff --git a/test/files/run/t5040.scala b/test/files/run/t5040.scala new file mode 100644 index 0000000000..6cd2c22234 --- /dev/null +++ b/test/files/run/t5040.scala @@ -0,0 +1,11 @@ +abstract class Prova2 extends Dynamic { + def applyDynamic(m: String)(): Unit + private def privateMethod() = println("private method") +} + +object Test extends App { + val prova= new Prova2 { + def applyDynamic(m: String)() = println("applyDynamic") + } + prova.privateMethod() +} |