diff options
author | David Li <li.davidm96@gmail.com> | 2017-11-06 09:26:23 -0500 |
---|---|---|
committer | David Li <li.davidm96@gmail.com> | 2017-11-06 09:26:23 -0500 |
commit | 5b137e0983051bf72759cea9c4af1c4bc7a24e1f (patch) | |
tree | b1ef7efe6dbacbe3f37275fd829c8cc9eb19551c /src/ast.rs | |
parent | e4dfafc26756b6e9fe3df445efb5a14d4cab3e31 (diff) |
Type check record definitions
Diffstat (limited to 'src/ast.rs')
-rw-r--r-- | src/ast.rs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -86,11 +86,11 @@ pub enum Expression { #[derive(Debug)] pub struct RecordField { pub name: WithLocation<String>, - pub ty: WithLocation<String>, + pub ty: WithLocation<Ty>, } impl RecordField { - pub fn new(name: WithLocation<String>, ty: WithLocation<String>) -> RecordField { + pub fn new(name: WithLocation<String>, ty: WithLocation<Ty>) -> RecordField { RecordField { name, ty } } } |