forked from scala/scala3
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix scala#13518: Fix primitive + string when the string is a TermRef.
Sometimes, the argument string's `tpe` can be `TermRef`, in which case it is not directly a ref to `StringClass`. That was triggering the assertion. The assertions and the calls to `makePrimitiveBox` have actually not been needed for a long time. The IR supports the arguments to a `String_+` operator to be of any type. So we fix the issue by removing all of that and directly emitting the `String_+`.
- Loading branch information
Showing
2 changed files
with
9 additions
and
21 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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