mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
fmt: format long sum-types with a line for each type (#11461)
This commit is contained in:
13
vlib/v/fmt/tests/long_sumtype_expected.vv
Normal file
13
vlib/v/fmt/tests/long_sumtype_expected.vv
Normal file
@ -0,0 +1,13 @@
|
||||
import v.ast
|
||||
|
||||
type ManyExpr = ast.AnonFn
|
||||
| ast.ArrayDecompose
|
||||
| ast.ArrayInit
|
||||
| ast.AsCast
|
||||
| ast.AtExpr
|
||||
| ast.BoolLiteral
|
||||
| ast.CTempVar
|
||||
| ast.CallExpr
|
||||
| ast.CastExpr
|
||||
|
||||
type SomeStmt = ast.AsmStmt | ast.AssertStmt
|
6
vlib/v/fmt/tests/long_sumtype_input.vv
Normal file
6
vlib/v/fmt/tests/long_sumtype_input.vv
Normal file
@ -0,0 +1,6 @@
|
||||
import v.ast
|
||||
|
||||
type ManyExpr = ast.AnonFn | ast.ArrayDecompose | ast.ArrayInit | ast.AsCast | ast.AtExpr | ast.BoolLiteral | ast.CTempVar | ast.CallExpr | ast.CastExpr
|
||||
|
||||
type SomeStmt = ast.AsmStmt
|
||||
| ast.AssertStmt
|
Reference in New Issue
Block a user