mirror of
https://github.com/erg-lang/erg.git
synced 2025-10-02 21:44:34 +00:00
13 lines
No EOL
951 B
Markdown
13 lines
No EOL
951 B
Markdown
# 错误恢复建议(尚未实现)
|
|
|
|
[](https://gezf7g7pd5.execute-api.ap-northeast-1.amazonaws.com/default/source_up_to_date?owner=erg-lang&repos=erg&ref=main&path=doc/EN/compiler/TODO_recov_suggest.md&commit_hash=d15cbbf7b33df0f78a575cff9679d84c36ea3ab1)
|
|
|
|
* `1 or 2`, `1 and 2` => `{1, 2}`?
|
|
* `U = Inherit T` => 非类类型不能被继承,或者`U = Class T`?
|
|
* `Int and Str` => 不允许多重继承,或者`Int or Str`?
|
|
* `: [1, 2]` => `: {1, 2}`?
|
|
* `: [Int, 2]` => `: [Int; 2]`?
|
|
* `[Int; Str]` => `(Int, Str)`(Tuple) 还是 `[Int: Str]`(Dict)?
|
|
* `{x: Int}` => `{x = Int}`?
|
|
* `{x = Int}!` => `{x = Int!}`?
|
|
* `ref! immut_expr` => `ref! !immut_expr`? |