diff options
author | Adriaan Moors <adriaan.moors@typesafe.com> | 2013-04-01 14:41:22 -0700 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@typesafe.com> | 2013-04-01 14:41:22 -0700 |
commit | 00e6c8b9e395cae3b761b848482bc91c7634ec13 (patch) | |
tree | a3b4bdf5d54d4d9ed5a260f4e410d3a918571fdc /test/files/pos/t7232 | |
parent | 3a33a8be46881474376cd8628cf4a6092fc3b97e (diff) | |
parent | 8383b65fb53ae9424cf9c6f1314ee73321ad3b9a (diff) | |
download | scala-00e6c8b9e395cae3b761b848482bc91c7634ec13.tar.gz scala-00e6c8b9e395cae3b761b848482bc91c7634ec13.tar.bz2 scala-00e6c8b9e395cae3b761b848482bc91c7634ec13.zip |
Merge pull request #2317 from retronym/ticket/7232-master
[forward-port] SI-7232 Fix Java import vs defn. binding precendence
Diffstat (limited to 'test/files/pos/t7232')
-rw-r--r-- | test/files/pos/t7232/Foo.java | 9 | ||||
-rw-r--r-- | test/files/pos/t7232/List.java | 4 | ||||
-rw-r--r-- | test/files/pos/t7232/Test.scala | 5 |
3 files changed, 18 insertions, 0 deletions
diff --git a/test/files/pos/t7232/Foo.java b/test/files/pos/t7232/Foo.java new file mode 100644 index 0000000000..3478301b30 --- /dev/null +++ b/test/files/pos/t7232/Foo.java @@ -0,0 +1,9 @@ +package pack; + +import java.util.List; + +public class Foo { + public static java.util.List okay() { throw new Error(); } + + public static List wrong() { throw new Error(); } +} diff --git a/test/files/pos/t7232/List.java b/test/files/pos/t7232/List.java new file mode 100644 index 0000000000..e42c63aa67 --- /dev/null +++ b/test/files/pos/t7232/List.java @@ -0,0 +1,4 @@ +package pack; + +public class List { +} diff --git a/test/files/pos/t7232/Test.scala b/test/files/pos/t7232/Test.scala new file mode 100644 index 0000000000..49c3c12aed --- /dev/null +++ b/test/files/pos/t7232/Test.scala @@ -0,0 +1,5 @@ +object Test { + import pack._ + Foo.okay().size() + Foo.wrong().size() +} |