Report diagnostics in Type::from_ast
#5
Labels
A-diagnostics
Area: diagnostics
A-sema
Area: the semantic analysis phase on the AST
B-none
Breaks: nothing, updates are internal and/or don't change existing features
C-bug-report
Category: bug report
P-high
Priority: should ship in the earliest possible release
Milestone
Currently,
Type::from_ast
looks like this:from
(src/types.rs)
:Rather than
expect
ing and panicking when a value is used as a type, we should report a diagnostic. Ideally, this diagnostic would be a type-mismatch diagnostic which may be re-used in other situations, such as variable type mismatches, etc.The text was updated successfully, but these errors were encountered: