Skip to content

AnnotatedString: wrong join() result with other string types #55198

Closed
@aplavin

Description

@aplavin

In both 1.11rc and nightly:

julia> using InlineStrings

julia> a = Base.AnnotatedString("annotated", [(1:9, :label => 1)])

julia> b = InlineString("abc")

# correct:
julia> a * b
"annotatedabc"

# wrong:
julia> join([a,b])
"annotated\x03cba"

# correct:
julia> join([String(a), b])
"annotatedabc"

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions