Load standard library correctly

This commit is contained in:
Jeff 2024-06-22 11:50:44 -04:00
parent a05d9016f2
commit d06a614cfa
2 changed files with 4 additions and 4 deletions

View File

@ -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,
}); });
}; };

View File

@ -1,5 +1,5 @@
thread = { thread = {
sleep = fn (milliseconds: int) -> none { sleep = fn (milliseconds: int) {
SLEEP milliseconds __SLEEP__ milliseconds
} }
} }