summaryrefslogtreecommitdiff
path: root/src/ast.rs
diff options
context:
space:
mode:
authorDavid Li <li.davidm96@gmail.com>2017-11-06 09:26:23 -0500
committerDavid Li <li.davidm96@gmail.com>2017-11-06 09:26:23 -0500
commit5b137e0983051bf72759cea9c4af1c4bc7a24e1f (patch)
treeb1ef7efe6dbacbe3f37275fd829c8cc9eb19551c /src/ast.rs
parente4dfafc26756b6e9fe3df445efb5a14d4cab3e31 (diff)
Type check record definitions
Diffstat (limited to 'src/ast.rs')
-rw-r--r--src/ast.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ast.rs b/src/ast.rs
index 3cc68c1..744397a 100644
--- a/src/ast.rs
+++ b/src/ast.rs
@@ -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 }
}
}