WIP: dev #1

Draft
nub31 wants to merge 103 commits from dev into master
3 changed files with 2 additions and 5 deletions
Showing only changes of commit e7aad861d3 - Show all commits

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
}