This commit is contained in:
nub31
2026-03-09 17:35:34 +01:00
parent 4210ad878b
commit 1a1dc1389d
3 changed files with 161 additions and 185 deletions

View File

@@ -144,18 +144,6 @@ if (!compileLib)
return 1;
}
if (entryPointType.Parameters.Count != 1)
{
DiagnosticFormatter.Print(Diagnostic.Error($"Entrypoint must take exaxtly one parameter").Build(), Console.Error);
return 1;
}
if (entryPointType.Parameters[0] is not NubTypeArray { ElementType: NubTypeString })
{
DiagnosticFormatter.Print(Diagnostic.Error($"First parameter of entrypoint must be a string array").Build(), Console.Error);
return 1;
}
entryPoint = info.MangledName;
}