diff options
author | Lukas Rytz <lukas.rytz@gmail.com> | 2017-02-20 14:38:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-20 14:38:16 +0100 |
commit | cad3c3da3ea505b2e63878abad8df76365f999a4 (patch) | |
tree | 975230c312b3a7370279088776788cba171ab071 /test | |
parent | 3e9df417edc5007d6d07240524e75514f5a4ac06 (diff) | |
parent | c396e965f1954cb899a1f6ae55ccae1c78284a18 (diff) | |
download | scala-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.scala | 11 |
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 |