mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +00:00
de-alias when diffing with a non-alias
When one of the types in a comparison is an alias, elm does not de-alias it. That is really annoying if e.g. the alias is of a record and you used an invalid field: the field suggestion error does not kick in
This commit is contained in:
parent
2811f978a4
commit
d15bd07bf4
5 changed files with 33 additions and 12 deletions
|
|
@ -605,7 +605,7 @@ pub enum PReason {
|
|||
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||
pub enum AnnotationSource {
|
||||
TypedIfBranch { index: Index, num_branches: usize },
|
||||
TypedWhenBranch(Index),
|
||||
TypedWhenBranch { index: Index },
|
||||
TypedBody,
|
||||
}
|
||||
|
||||
|
|
@ -619,8 +619,6 @@ pub enum Reason {
|
|||
name: Option<Symbol>,
|
||||
arity: u8,
|
||||
},
|
||||
// BinOpArg(BinOp, ArgSide),
|
||||
// BinOpRet(BinOp),
|
||||
FloatLiteral,
|
||||
IntLiteral,
|
||||
NumLiteral,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue