mirror of
https://github.com/Dummi26/mers.git
synced 2025-12-16 03:57:50 +01:00
Type Annotations
- Add type annotations: [type] statement - Add type definitions: [[name] type], [[name] := statement] - Add type annotations example (08) - add Quickstart.md, reference it from README
This commit is contained in:
@@ -63,6 +63,13 @@ pub mod error_colors {
|
||||
pub const AssignFrom: Color = InitFrom;
|
||||
pub const AssignTo: Color = InitTo;
|
||||
pub const AssignTargetNonReference: Color = Color::BrightYellow;
|
||||
|
||||
pub const AsTypeStatementWithTooBroadType: Color = InitFrom;
|
||||
pub const AsTypeTypeAnnotation: Color = InitTo;
|
||||
|
||||
pub const BadCharInTupleType: Color = Color::Red;
|
||||
pub const BadTypeFromParsed: Color = Color::Blue;
|
||||
pub const TypeAnnotationNoClosingBracket: Color = Color::Blue;
|
||||
}
|
||||
enum CheckErrorComponent {
|
||||
Message(String),
|
||||
|
||||
Reference in New Issue
Block a user