Allow for either .odin file or directory as the initial start

This commit is contained in:
gingerBill
2018-05-27 11:40:27 +01:00
parent 6aae381e83
commit df578d6ec5
10 changed files with 40 additions and 1495 deletions
+2 -2
View File
@@ -2532,7 +2532,7 @@ void check_add_import_decl(Checker *c, AstNodeImportDecl *id) {
GB_ASSERT(scope->is_package && scope->package != nullptr);
if (scope->is_global) {
error(token, "Importing a runtime package is disallowed and unnecessary");
error(token, "Importing a built-in package is disallowed and unnecessary");
return;
}
@@ -2567,7 +2567,7 @@ void check_add_import_decl(Checker *c, AstNodeImportDecl *id) {
if (id->is_using) {
if (parent_scope->is_global) {
error(id->import_name, "'runtime' package imports cannot use using");
error(id->import_name, "'builtin' package imports cannot use using");
return;
}