Skip to content

A TypeError crashes Julia #56248

Closed
Closed
@olivierverdier

Description

@olivierverdier

The following code crashes Julia

using Test
import Pkg
Pkg.add("Manifolds")
using Manifolds



@testset "Julia crash" for M in
    [
        Sphere(2),
    ]
    @test_throws TypeError [] isa Vector{<:Sphere(3)}
end

See a discussion in this issue and a reproduction of the problem in this repo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIndicates an unexpected problem or unintended behaviorcompiler:inferenceType inference

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions