Skip to content

Fails to build on 1.6: type piracy? #24

@timholy

Description

@timholy

Hyperscript doesn't build on nightly. The reason is https://github.com/yurivish/Hyperscript.jl/blob/7731aecafd06e9366020ebee0d6674527fe3d7d6/src/Hyperscript.jl#L117

Here's why: 1.6 has a new TOML parser that includes this line. The issue is that Union{} <: Hyperscript.AbstractNode, because Union{} is a subtype of every other type, and hence instead of creating an array with eltype Union{} it tries (during package loading!) to call Union{}(xs...), which obviously fails. CC @KristofferC.

I am pretty sure this method counts as type-piracy (even if you own YourType, you do not own Vector{YourType}), so I guess the question is, can it be eliminated?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions