Commit 4201f423 by Ian Lance Taylor

compiler: Don't permit importing a package as "init".

From-SVN: r205938
parent 10d91e57
......@@ -440,6 +440,9 @@ Gogo::import_package(const std::string& filename,
return;
}
if (local_name == "init")
error_at(location, "cannot import package as init");
if (filename == "unsafe")
{
this->import_unsafe(local_name, is_local_name_exported, location);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment