v/vlib/v/fmt/tests/cast_input.vv

15 lines
223 B
V

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())
}