fmt: support static too
parent
7e08e84bc1
commit
276c08e7f7
|
@ -141,7 +141,7 @@ fn (mut p Parser) partial_assign_stmt(left []ast.Expr, left_comments []ast.Comme
|
||||||
iv := lx.info as ast.IdentVar
|
iv := lx.info as ast.IdentVar
|
||||||
share = iv.share
|
share = iv.share
|
||||||
if iv.is_static {
|
if iv.is_static {
|
||||||
if !p.pref.translated {
|
if !p.pref.translated && !p.pref.is_fmt {
|
||||||
p.error_with_pos('static variables are supported only in -translated mode',
|
p.error_with_pos('static variables are supported only in -translated mode',
|
||||||
lx.pos)
|
lx.pos)
|
||||||
return ast.Stmt{}
|
return ast.Stmt{}
|
||||||
|
|
Loading…
Reference in New Issue