This commit is contained in:
nub31
2026-02-27 23:00:48 +01:00
parent ecb628c4c2
commit e7aad861d3
3 changed files with 2 additions and 5 deletions

View File

@@ -474,7 +474,7 @@ public class TypeChecker
{
var parameter = CheckExpression(expression.Parameters[i], funcType.Parameters[i]);
if (!parameter.Type.IsAssignableTo(funcType.Parameters[i]))
throw BasicError($"Parameter {i + 1} does is not assignable to '{funcType.Parameters[i]}'", parameter);
throw BasicError($"Parameter {i + 1} ({parameter.Type}) does is not assignable to '{funcType.Parameters[i]}'", parameter);
parameters.Add(parameter);
}

View File

@@ -2,7 +2,6 @@ module core
extern func puts(text: ^u8)
export func print(text: string)
{
export func print(text: string) {
puts(text.ptr)
}

View File

@@ -3,7 +3,5 @@ module main
func main(): i32
{
core::print("Hello, world")
let ptr = core::malloc(64)
core::free(ptr)
return 0
}