summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorLukas Rytz <lukas.rytz@gmail.com>2017-02-20 14:38:16 +0100
committerGitHub <noreply@github.com>2017-02-20 14:38:16 +0100
commitcad3c3da3ea505b2e63878abad8df76365f999a4 (patch)
tree975230c312b3a7370279088776788cba171ab071 /test
parent3e9df417edc5007d6d07240524e75514f5a4ac06 (diff)
parentc396e965f1954cb899a1f6ae55ccae1c78284a18 (diff)
downloadscala-cad3c3da3ea505b2e63878abad8df76365f999a4.tar.gz
scala-cad3c3da3ea505b2e63878abad8df76365f999a4.tar.bz2
scala-cad3c3da3ea505b2e63878abad8df76365f999a4.zip
Merge pull request #5709 from adriaanm/sam_wild_bound
Ignore BoundedWildcardType in erasure type map
Diffstat (limited to 'test')
-rw-r--r--test/files/pos/sam_erasure_boundedwild.scala11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/files/pos/sam_erasure_boundedwild.scala b/test/files/pos/sam_erasure_boundedwild.scala
new file mode 100644
index 0000000000..1ec27e0ea4
--- /dev/null
+++ b/test/files/pos/sam_erasure_boundedwild.scala
@@ -0,0 +1,11 @@
+class Test {
+ trait Q[T] {
+ def toArray[T](x: Array[T]): Array[T]
+ def toArray(): Array[T]
+ }
+
+ def crashTyper: Array[_] = {
+ val x : Q[_] = ???
+ x.toArray // crashes while doing overload resolution
+ }
+} \ No newline at end of file