Strip CC annotations in TypeMap when CC is not enabled#24556
Merged
odersky merged 2 commits intoscala:mainfrom Nov 27, 2025
Merged
Strip CC annotations in TypeMap when CC is not enabled#24556odersky merged 2 commits intoscala:mainfrom
odersky merged 2 commits intoscala:mainfrom
Conversation
Member
Author
|
Minimized failing test: @main def Test: Unit =
println(IArray.equals(IArray("a"), IArray("b")))Error: -- [E007] Type Mismatch Error: tests/run/IArrayOps.scala:2:24 ------------------
2 | println(IArray.equals(IArray("a"), IArray("b")))
| ^^^^^^^^^^^
| Found: IArray[String]
| Required: Array[? <: Object]
|
| longer explanation available when compiling with `-explain`
def equals(xs: IArray[AnyRef^], ys: IArray[AnyRef^]): BooleanCould the problem be that |
Member
Author
|
Found the culprit: Fixing by using |
a165c0c to
fe1dfee
Compare
odersky
approved these changes
Nov 27, 2025
mbovel
added a commit
that referenced
this pull request
Nov 29, 2025
This reverts one commit in #24556 but keeps its logic. It just moves the code elsewhere. --------- Co-authored-by: Matt Bovel <matthieu@bovel.net>
WojciechMazur
pushed a commit
that referenced
this pull request
Dec 3, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hot fixes #24550. This is a mitigation, but doesn't fix the root cause.