You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(. if (moduleLevelDecl && dmod.StaticToken != null) {
1297
-
errors.Warning(dmod.StaticToken, "module-level functions are always non-instance, so the 'static' keyword is not allowed here");
1298
+
errors.Warning(ErrorId.p_module_level_always_static, dmod.StaticToken, "module-level functions are always non-instance, so the 'static' keyword is not allowed here");
1298
1299
dmod.IsStatic = false;
1299
1300
}
1300
1301
.)
1301
1302
FunctionDecl<dmod, out f> (. mm.Add(f); .)
1302
1303
| (. if (moduleLevelDecl && dmod.StaticToken != null) {
1303
-
errors.Warning(dmod.StaticToken, "module-level methods are always non-instance, so the 'static' keyword is not allowed here");
1304
+
errors.Warning(ErrorId.p_module_level_always_static, dmod.StaticToken, "module-level methods are always non-instance, so the 'static' keyword is not allowed here");
1304
1305
dmod.IsStatic = false;
1305
1306
}
1306
1307
.)
@@ -1422,7 +1423,7 @@ ConstantFieldDecl<.DeclModifierData dmod, List<MemberDecl/*!*/>/*!*/ mm, bool mo
1422
1423
Type/*!*/ ty;
1423
1424
Expression e = null;
1424
1425
if (moduleLevelDecl && dmod.StaticToken != null) {
1425
-
errors.Warning(dmod.StaticToken, "module-level const declarations are always non-instance, so the 'static' keyword is not allowed here");
1426
+
errors.Warning(ErrorId.p_module_level_const_always_static, dmod.StaticToken, "module-level const declarations are always non-instance, so the 'static' keyword is not allowed here");
0 commit comments