Load standard library correctly
This commit is contained in:
parent
a05d9016f2
commit
d06a614cfa
@ -57,9 +57,9 @@ impl TypeConstructor {
|
|||||||
let invoked_type = if let Some(r#type) = context.get_type(&identifier.node)? {
|
let invoked_type = if let Some(r#type) = context.get_type(&identifier.node)? {
|
||||||
r#type
|
r#type
|
||||||
} else {
|
} else {
|
||||||
return Err(ValidationError::VariableNotFound {
|
return Ok(Type::Generic {
|
||||||
identifier: identifier.node.clone(),
|
identifier: identifier.node.clone(),
|
||||||
position: identifier.position,
|
concrete_type: None,
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
thread = {
|
thread = {
|
||||||
sleep = fn (milliseconds: int) -> none {
|
sleep = fn (milliseconds: int) {
|
||||||
SLEEP milliseconds
|
__SLEEP__ milliseconds
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user