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)? {
|
||||
r#type
|
||||
} else {
|
||||
return Err(ValidationError::VariableNotFound {
|
||||
return Ok(Type::Generic {
|
||||
identifier: identifier.node.clone(),
|
||||
position: identifier.position,
|
||||
concrete_type: None,
|
||||
});
|
||||
};
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
thread = {
|
||||
sleep = fn (milliseconds: int) -> none {
|
||||
SLEEP milliseconds
|
||||
sleep = fn (milliseconds: int) {
|
||||
__SLEEP__ milliseconds
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user