diff options
author | Adriaan Moors <adriaan.moors@typesafe.com> | 2012-12-05 17:54:47 -0800 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@typesafe.com> | 2012-12-05 17:54:47 -0800 |
commit | 9547753a80fab450c842cb4a9a8296aa41875ff3 (patch) | |
tree | 637acdd45dbf93ba87ae6cb67d4237da652ac8c1 /test/files/run/t6677.scala | |
parent | 4b2330b3d3db4263a8b1e19b792596dd60d79045 (diff) | |
parent | c42c1742e26dc47f940e4003e4ca25e8c738796d (diff) | |
download | scala-9547753a80fab450c842cb4a9a8296aa41875ff3.tar.gz scala-9547753a80fab450c842cb4a9a8296aa41875ff3.tar.bz2 scala-9547753a80fab450c842cb4a9a8296aa41875ff3.zip |
Merge pull request #1716 from paulp/merge-2.10
Merged 2.10.0/x into master.
Diffstat (limited to 'test/files/run/t6677.scala')
-rw-r--r-- | test/files/run/t6677.scala | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/test/files/run/t6677.scala b/test/files/run/t6677.scala new file mode 100644 index 0000000000..e6eaf6a498 --- /dev/null +++ b/test/files/run/t6677.scala @@ -0,0 +1,28 @@ + +class Test { + val cm: reflect.runtime.universe.Mirror = reflect.runtime.currentMirror + def error { + new cm.universe.Traverser // java.lang.VerifyError: (class: Test, method: error signature: ()V) Incompatible object argument for function call + + } + + def okay1 { + val cm: reflect.runtime.universe.Mirror = reflect.runtime.currentMirror + + new cm.universe.Traverser + } + + def okay2 { + val cm: reflect.runtime.universe.Mirror = reflect.runtime.currentMirror + val u: reflect.runtime.universe.type = cm.universe + new u.Traverser + } +} + +object Test { + def main(args: Array[String]) { + new Test().error + new Test().okay1 + new Test().okay2 + } +} |