blob: 72b254cde88e0dd0e85d913a761292c01921d191 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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())
}
|