invalid type application returns instead of throwing #54348
Labels
domain:types and dispatch
Types, subtyping and method dispatch
kind:breaking
This change will break code
kind:minor change
Marginal behavior change acceptable for a minor release
If the parameter constraint in the definition of
struct S
is relaxed (!) like below, the type application throws as expected:This perhaps suggests a fix: when Julia sees a parameter constraint with a type application, it could consider as multiple type constraints, e.g.,
<:AbstractVector{A}
could be internally interpreted as two constraints,<:AbstractVector{A}
and<:AbstractVector
. If you get what I mean.The text was updated successfully, but these errors were encountered: