Disable returning type
s from functions entirely
#10
Labels
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
M-compiler-panic
Dealing with a compiler panic/crash
P-high
Priority: should ship in the earliest possible release
Milestone
Currently,
type
technically can be used as a return type for a function, but type values are not supported by the Cranelift backend.Which causes the compiler to output:
Instead, we should report a diagnostic explaining that
type
s cannot be returned from functions.The text was updated successfully, but these errors were encountered: