Skip to content

error on where variable name collision inside struct def #32089

@krrutkow

Description

@krrutkow

On official Julia 1.1 binaries:

struct BadStruct{T}
   t::T
   v::Vector{Tuple{T} where {T<:Integer}}
end

results in an error message like ERROR: syntax: invalid type parameter name "SSAValue(...)" which doesn't really help to identify the offending name.

Metadata

Metadata

Assignees

Labels

bugIndicates an unexpected problem or unintended behaviorcompiler:loweringSyntax lowering (compiler front end, 2nd stage)

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions