Implement type ascription.
This commit is contained in:
parent
ce7bc51933
commit
b8157cc67f
20 changed files with 112 additions and 12 deletions
|
@ -943,6 +943,7 @@ pub enum Expr_ {
|
|||
ExprLit(P<Lit>),
|
||||
/// A cast (`foo as f64`)
|
||||
ExprCast(P<Expr>, P<Ty>),
|
||||
ExprType(P<Expr>, P<Ty>),
|
||||
/// An `if` block, with an optional else block
|
||||
///
|
||||
/// `if expr { block } else { expr }`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue