Skip to content

write(::IO, ::AnnotatedChar) does not return an Int  #54195

Closed
@LilithHafner

Description

@LilithHafner

write is supposed to return the number of bytes written.

julia> write(IOContext(Base.AnnotatedIOBuffer()), Base.AnnotatedChar('a', [:y => 2]))

julia> write(IOContext(Base.AnnotatedIOBuffer()), Base.AnnotatedChar('a', [:y => 2])) === nothing
true

#53715 will fix this particular case, but not fix the underlying issue with the write(::IO, ::AnnotatedChar) method.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIndicates an unexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions