mirror of
https://github.com/erg-lang/erg.git
synced 2025-10-01 21:21:10 +00:00
11 lines
460 B
Markdown
11 lines
460 B
Markdown
# Error recovery suggestions (not implemented yet)
|
|
|
|
* `1 or 2`, `1 and 2` => `{1, 2}`?
|
|
* `U = Inherit T` => Non-class type cannot be inherited, or `U = Class T`?
|
|
* `Int and Str` => Multiple inheritance is not allowed, or `Int or Str`?
|
|
* `: [1, 2]` => `: {1, 2}`?
|
|
* `: [Int, 2]` => `: [Int; 2]`?
|
|
* `[Int; Str]` => `(Int, Str)`(Tuple) or `[Int: Str]`(Dict)?
|
|
* `{x: Int}` => `{x = Int}`?
|
|
* `{x = Int}!` => `{x = Int!}`?
|
|
* `ref! immut_expr` => `ref! !immut_expr`?
|