diff options
author | Grzegorz Kossakowski <grzegorz.kossakowski@gmail.com> | 2012-09-27 03:33:37 -0700 |
---|---|---|
committer | Grzegorz Kossakowski <grzegorz.kossakowski@gmail.com> | 2012-09-27 03:33:37 -0700 |
commit | 6ec0fe522256e48f8ccc0204d7c4ed63a34d9ede (patch) | |
tree | 8ef2d71c934e4c6a43c12cf23e7cca704c6cde16 /test/files/run | |
parent | 78879c4dab79c0da8c31a4f7210c46fc0bd892c7 (diff) | |
parent | 97ede5a64a60c739f03619f9c0d7e2bf88a97207 (diff) | |
download | scala-6ec0fe522256e48f8ccc0204d7c4ed63a34d9ede.tar.gz scala-6ec0fe522256e48f8ccc0204d7c4ed63a34d9ede.tar.bz2 scala-6ec0fe522256e48f8ccc0204d7c4ed63a34d9ede.zip |
Merge pull request #1383 from paulp/issue/5604
Issue/5604
Diffstat (limited to 'test/files/run')
-rw-r--r-- | test/files/run/t5604.check | 8 | ||||
-rw-r--r-- | test/files/run/t5604.scala | 50 |
2 files changed, 58 insertions, 0 deletions
diff --git a/test/files/run/t5604.check b/test/files/run/t5604.check new file mode 100644 index 0000000000..53a2fc8894 --- /dev/null +++ b/test/files/run/t5604.check @@ -0,0 +1,8 @@ +long +double +long +double +long +double +long +double diff --git a/test/files/run/t5604.scala b/test/files/run/t5604.scala new file mode 100644 index 0000000000..a06c8aab3e --- /dev/null +++ b/test/files/run/t5604.scala @@ -0,0 +1,50 @@ +// a.scala +// Fri Jan 13 11:31:47 PST 2012 + +package foo { + object regular extends Duh { + def buh(n: Long) = println("long") + def buh(n: Double) = println("double") + } + class regular { + import regular._ + + duh(33L) + duh(3.0d) + foo.regular.duh(33L) + foo.regular.duh(3.0d) + buh(66L) + buh(6.0d) + foo.regular.buh(66L) + foo.regular.buh(6.0d) + } + + trait Duh { + def duh(n: Long) = println("long") + def duh(n: Double) = println("double") + } + package object bar extends Duh { + def buh(n: Long) = println("long") + def buh(n: Double) = println("double") + } + package bar { + object Main { + def main(args:Array[String]) { + duh(33L) + duh(3.0d) + foo.bar.duh(33L) + foo.bar.duh(3.0d) + buh(66L) + buh(6.0d) + foo.bar.buh(66L) + foo.bar.buh(6.0d) + } + } + } +} + +object Test { + def main(args: Array[String]): Unit = { + foo.bar.Main.main(null) + } +} |