Skip to content
Snippets Groups Projects
Commit b77c220c authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Allow multiple import of a module

Multiple import are treated as one. Produce a warning message.
parent 2de704ec
No related branches found
No related tags found
1 merge request!37Feature/language
...@@ -59,6 +59,20 @@ import math; ...@@ -59,6 +59,20 @@ import math;
CHECK_AST(data, result); CHECK_AST(data, result);
} }
SECTION("module multiple import")
{
std::string_view data = R"(
import math;
import math;
)";
std::string_view result = R"(
(root:undefined)
)";
CHECK_AST(data, result);
}
SECTION("error") SECTION("error")
{ {
SECTION("unknown module") SECTION("unknown module")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment