Skip to content

invalid construction, Vector{Tuple{:a, :b}}, creates a traceback rather than an error #40742

Closed
@clarkevans

Description

@clarkevans

This is illegal construction, but rather than being an error, it creates a traceback.

julia> versioninfo()
Julia Version 1.6.1
Commit 6aaedecc44 (2021-04-23 05:59 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: Intel(R) Celeron(R) CPU J3455 @ 1.50GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-11.0.1 (ORCJIT, goldmont)

julia> T = Vector{Tuple{:a, :b}}
Vector{Tuple{:a, :b}} (alias for Array{Tuple{:a, :b}, 1})

julia> T()
Internal error: encountered unexpected error in runtime:
MethodError(f=Core.Compiler.widenconst, args=(:a,), world=0x00000000000010a8)
jl_method_error_bare at /buildworker/worker/package_linux64/build/src/gf.c:1812
jl_method_error at /buildworker/worker/package_linux64/build/src/gf.c:1830
jl_lookup_generic_ at /buildworker/worker/package_linux64/build/src/gf.c:2400 [inlined]
jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2415
...

Metadata

Metadata

Assignees

Labels

bugIndicates an unexpected problem or unintended behaviorcompiler:inferenceType inference

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions