diff options
Diffstat (limited to 'v_windows/v/old/vlib/v/fmt/tests/cast_input.vv')
-rw-r--r-- | v_windows/v/old/vlib/v/fmt/tests/cast_input.vv | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/v_windows/v/old/vlib/v/fmt/tests/cast_input.vv b/v_windows/v/old/vlib/v/fmt/tests/cast_input.vv new file mode 100644 index 0000000..72b254c --- /dev/null +++ b/v_windows/v/old/vlib/v/fmt/tests/cast_input.vv @@ -0,0 +1,14 @@ +import v.ast { InfixExpr } +import v.table { Type } + +fn test_as() { + _ := sum_expr() as ast.InfixExpr + _ := sum_expr() as ast.PrefixExpr +} + +fn test_cast() { + _ := f32(0) + _ := table.Type(0) + _ := ast.Expr(sum_expr()) +} + |