@@ -1177,20 +1177,7 @@ class TreeUnpickler(reader: TastyReader,
11771177 val levels = readNat()
11781178 readTerm().outerSelect(levels, SkolemType (readType()))
11791179 case SELECTin =>
1180- // ================================================================================
1181- // Test Report
1182- // ================================================================================
1183-
1184- // 3 suites passed, 1 failed, 4 total
1185- // ] failed
1186- // tests/pos/i5418.scala failed
1187- // tests/pos/i5980.scala failed
1188- val srcnmes = Nil // List("i5980", "i5418")
1189- val doinspect = srcnmes.exists(ctx.source.name.startsWith)
11901180 var symname = readName()
1191- var precisesig = readName() match
1192- case SignedName (_, sig, _) => sig
1193- case _ => Signature .NotAMethod
11941181 val qual = readTerm()
11951182 val qualType = qual.tpe.widenIfUnstable
11961183 val space = if currentAddr == end then qualType else readType()
@@ -1211,23 +1198,15 @@ class TreeUnpickler(reader: TastyReader,
12111198 val res = symname match
12121199 case SignedName (name, sig, target) =>
12131200 val pre = ctx.typeAssigner.maybeSkolemizePrefix(qualType, name)
1214- assert(precisesig != Signature .NotAMethod )
12151201 val isAmbiguous = pre.nonPrivateMember(name).match
12161202 case d : MultiDenotation =>
12171203 d.atSignature(sig, target).isInstanceOf [MultiDenotation ]
12181204 case _ => false
12191205 if isAmbiguous then
1220- if doinspect then
1221- val diff = if sig != precisesig then i " $sig => $precisesig" else i " $sig"
1222- report.error(i " $qual . $name differs ambiguously: [ $diff] " )
12231206 makeSelect(qual, name, space.decl(name).atSignature(sig, target).asSeenFrom(pre))
12241207 else
1225- if doinspect && sig != precisesig then
1226- report.error(i " $qual . $name differs: [ $sig => $precisesig] " )
12271208 select(name, sig, target)
12281209 case name =>
1229- if doinspect then
1230- report.error(i " $qual . $name nosig " )
12311210 makeSelect(qual, name, accessibleDenot(qualType, name, Signature .NotAMethod , EmptyTermName ))
12321211 // select(name, Signature.NotAMethod, EmptyTermName)
12331212 res
0 commit comments