We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a93460 commit 70f8506Copy full SHA for 70f8506
source/sema.h
@@ -1205,11 +1205,12 @@ class sema
1205
n.has_name("_")
1206
&& !n.is_object()
1207
&& !n.is_namespace()
1208
+ && !n.is_object_alias()
1209
)
1210
{
1211
errors.emplace_back(
1212
n.identifier->position(),
- "'_' (wildcard) may not be the name of a function or type - it may only be used as the name of an anonymous object or anonymous namespace"
1213
+ "'_' (wildcard) may not be the name of a function or type - it may only be used as the name of an anonymous object, object alias, or namespace"
1214
);
1215
return false;
1216
}
0 commit comments