File tree Expand file tree Collapse file tree 4 files changed +15
-2
lines changed
compiler/src/dotty/tools/dotc/transform Expand file tree Collapse file tree 4 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -131,10 +131,10 @@ object GenericSignatures {
131131 */
132132 def splitIntersection (parents : List [Type ])(using Context ): (List [Type ], List [Type ]) =
133133 val erasedParents = parents.map(erasure)
134- val erasedCls = erasedGlb(erasedParents).classSymbol
134+ val erasedTp = erasedGlb(erasedParents)
135135 parents.zip(erasedParents)
136136 .partitionMap((parent, erasedParent) =>
137- if erasedParent.classSymbol eq erasedCls then
137+ if erasedParent =:= erasedTp then
138138 Left (parent)
139139 else
140140 Right (parent))
Original file line number Diff line number Diff line change 1+ object A {
2+ def intARRAY_131 (x : Array [String ] with Array [Int ]): Unit = {}
3+ }
Original file line number Diff line number Diff line change 1+ public class B_2 {
2+ public static void test () {
3+ A .intARRAY_131 (null ); // shouldn't throw a NoSuchMethodError
4+ }
5+ }
Original file line number Diff line number Diff line change 1+ object Test {
2+ def main (args : Array [String ]): Unit = {
3+ B_2 .test()
4+ }
5+ }
You can’t perform that action at this time.
0 commit comments