Improve error message

This commit is contained in:
ayazhafiz 2022-03-15 11:18:02 -05:00
parent 73396c0607
commit 8aaf614481
6 changed files with 25 additions and 8 deletions

View file

@ -5,6 +5,7 @@ use roc_module::symbol::{ModuleId, Symbol};
use roc_parse::ast::Base;
use roc_parse::pattern::PatternType;
use roc_region::all::{Loc, Region};
use roc_types::types::AliasKind;
#[derive(Clone, Copy, Debug, PartialEq)]
pub struct CycleEntry {
@ -47,6 +48,7 @@ pub enum Problem {
typ: Symbol,
num_unbound: usize,
one_occurrence: Region,
kind: AliasKind,
},
DuplicateRecordFieldValue {
field_name: Lowercase,