It's an error to expose values that aren't defined

This commit is contained in:
Ayaz Hafiz 2022-12-02 13:41:41 -06:00
parent 845a2f8c75
commit 8e2c2e1809
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58

View file

@ -214,7 +214,7 @@ impl Problem {
Problem::UnusedDef(_, _) => Warning,
Problem::UnusedImport(_, _) => Warning,
Problem::UnusedModuleImport(_, _) => Warning,
Problem::ExposedButNotDefined(_) => Warning,
Problem::ExposedButNotDefined(_) => RuntimeError,
Problem::UnknownGeneratesWith(_) => RuntimeError,
Problem::UnusedArgument(_, _, _, _) => Warning,
Problem::UnusedBranchDef(_, _) => Warning,