Report exposed-but-not-defined symbols

This commit is contained in:
Richard Feldman 2020-12-10 23:17:10 -05:00
parent 14288d5aa6
commit ed222912b3
3 changed files with 16 additions and 2 deletions

View file

@ -12,6 +12,7 @@ use roc_region::all::{Located, Region};
pub enum Problem {
UnusedDef(Symbol, Region),
UnusedImport(ModuleId, Region),
ExposedButNotDefined(Symbol),
/// First symbol is the name of the closure with that argument
/// Second symbol is the name of the argument that is unused
UnusedArgument(Symbol, Symbol, Region),