File tree 3 files changed +12
-1
lines changed
compiler/src/dotty/tools/dotc/transform
tests/generic-java-signatures 3 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -317,7 +317,7 @@ object GenericSignatures {
317
317
val psyms = parents map (_.typeSymbol)
318
318
if (psyms contains defn.ArrayClass ) {
319
319
// treat arrays specially
320
- defn.ArrayType .appliedTo(intersectionDominator(parents.filter(_.typeSymbol == defn.ArrayClass ).map(t => t.typeParams .head.paramInfo )))
320
+ defn.ArrayType .appliedTo(intersectionDominator(parents.filter(_.typeSymbol == defn.ArrayClass ).map(t => t.argInfos .head)))
321
321
} else {
322
322
// implement new spec for erasure of refined types.
323
323
def isUnshadowed (psym : Symbol ) =
Original file line number Diff line number Diff line change
1
+ public <U> void Foo$.foo(int[])
Original file line number Diff line number Diff line change
1
+ object Foo {
2
+ def foo [U ](u : Array [Int ] & Array [U ]): Unit = ()
3
+ }
4
+
5
+ object Test {
6
+ def main (args : Array [String ]): Unit = {
7
+ val f1 = Foo .getClass.getMethods.find(_.getName.endsWith(" foo" )).get
8
+ println(f1.toGenericString)
9
+ }
10
+ }
You can’t perform that action at this time.
0 commit comments