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.
implicit
this
1 parent 82c585f commit c2e0778Copy full SHA for c2e0778
source/sema.h
@@ -1054,24 +1054,6 @@ class sema
1054
return false;
1055
}
1056
1057
- // An implicit constructor must have two parameters
1058
- if (n.is_constructor())
1059
- {
1060
- auto& params = std::get<declaration_node::a_function>(n.type)->parameters;
1061
- assert(params->ssize() > 0);
1062
- if (
1063
- params->parameters[0]->is_implicit()
1064
- && params->ssize() > 2
1065
- )
1066
1067
- errors.emplace_back(
1068
- n.position(),
1069
- "an 'implicit' constructor must have at most one additional parameter besides 'this'"
1070
- );
1071
- return false;
1072
- }
1073
1074
-
1075
// A nonvirtual and nondefaultable function must have an initializer
1076
if (
1077
n.is_function()
0 commit comments