erg/doc/zh_CN/compiler/TODO_recov_suggest.md
Cai Bingjun 37abfb36d3 trifle
2022-09-11 20:03:06 +08:00

951 B

错误恢复建议(尚未实现)

badge

  • 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?