mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 04:08:19 +00:00
Report unsuffixed record literal field with effectful function
This commit is contained in:
parent
ea35094b28
commit
215de707fa
7 changed files with 121 additions and 21 deletions
|
@ -45,8 +45,14 @@ pub enum TypeError {
|
|||
FxInPureFunction(Region, FxCallKind, Option<Region>),
|
||||
FxInTopLevel(Region, FxCallKind),
|
||||
PureStmt(Region),
|
||||
UnsuffixedEffectfulFunction(Region, Symbol),
|
||||
SuffixedPureFunction(Region, Symbol),
|
||||
UnsuffixedEffectfulFunction(Region, SuffixErrorKind),
|
||||
SuffixedPureFunction(Region, SuffixErrorKind),
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub enum SuffixErrorKind {
|
||||
Let(Symbol),
|
||||
RecordField,
|
||||
}
|
||||
|
||||
impl TypeError {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue