make objects work better, especially destructuring

This commit is contained in:
Mark
2024-09-28 01:51:20 +02:00
parent 9c8e918440
commit c17ea580b2
41 changed files with 899 additions and 453 deletions

View File

@@ -83,6 +83,7 @@ pub enum EColor {
BadCharInFunctionType,
BadCharAtStartOfStatement,
BadTypeFromParsed,
ObjectDuplicateField,
TypeAnnotationNoClosingBracket,
TryBadSyntax,
TryNoFunctionFound,

View File

@@ -78,7 +78,7 @@ pub fn default_theme<C>(
TryBadSyntax => hard_err,
TypeAnnotationNoClosingBracket | BracketedRefTypeNoClosingBracket => missing,
BadTypeFromParsed => type_wrong_b,
BadTypeFromParsed | ObjectDuplicateField => type_wrong_b,
// -- type-errors --
IfConditionNotBool => type_wrong,