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)? {
r#type
} else {
return Err(ValidationError::VariableNotFound {
return Ok(Type::Generic {
identifier: identifier.node.clone(),
position: identifier.position,
concrete_type: None,
});
};

View File

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