Skip to content

Commit

Permalink
Updated test error message.
Browse files Browse the repository at this point in the history
  • Loading branch information
InsertCreativityHere committed Apr 2, 2024
1 parent 3dd4bbb commit 52743a9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cpp/src/Slice/Grammar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1884,7 +1884,7 @@ yyparse(void)
size_t startPos = 0;
if (ident->v.find("::") == 0)
{
currentUnit->error("module identifiers cannot start with '::' prefix");
currentUnit->error("illegal identifier: module identifiers cannot start with '::' prefix");
startPos += 2; // Skip the leading "::".
}

Expand Down
2 changes: 1 addition & 1 deletion cpp/src/Slice/Grammar.y
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ module_def
size_t startPos = 0;
if (ident->v.find("::") == 0)
{
currentUnit->error("module identifiers cannot start with '::' prefix");
currentUnit->error("illegal identifier: module identifiers cannot start with '::' prefix");
startPos += 2; // Skip the leading "::".
}

Expand Down
2 changes: 1 addition & 1 deletion cpp/test/Slice/errorDetection/NestedModule.err
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ NestedModule.ice:20: illegal identifier `Holder': `Holder' suffix is reserved
NestedModule.ice:24: illegal identifier `APtr': `Ptr' suffix is reserved
NestedModule.ice:24: illegal identifier `BPrx': `Prx' suffix is reserved
NestedModule.ice:24: illegal identifier `CHelper': `Helper' suffix is reserved
NestedModule.ice:27: missing identifier: illegal empty identifier
NestedModule.ice:27: illegal identifier: module identifiers cannot start with '::' prefix
NestedModule.ice:27: illegal identifier `Helper': `Helper' suffix is reserved

0 comments on commit 52743a9

Please sign in to comment.