-
-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
It seems like there's a different behavior in the promotion rules between 1.10 and 1.11. I wasn't sure if this was intentional or not?
On 1.11:
julia> styled"foo" |> typeof
Base.AnnotatedString{String}
julia> "foo" * styled"foo" |> typeof
Base.AnnotatedString{String}On 1.10:
julia> styled"foo" |> typeof
StyledStrings.AnnotatedStrings.AnnotatedString{String}
julia> "foo" * styled"foo" |> typeof
StringIt was causing some type instabilities in my code as I had presumed everything would be an annotated string after concatenating with strings, but on 1.10 it seems that a regular String overpowers the annotations.
Metadata
Metadata
Assignees
Labels
No labels