13 references to WRN_MainCantBeGeneric
Microsoft.CodeAnalysis.CSharp (5)
Compilation\CSharpCompilation.cs (2)
2017
noMainFoundDiagnostics.Add(ErrorCode.
WRN_MainCantBeGeneric
, candidate.GetFirstLocation(), candidate);
2101
if (diagnostic.Code == (int)ErrorCode.WRN_InvalidMainSig || diagnostic.Code == (int)ErrorCode.
WRN_MainCantBeGeneric
)
Errors\ErrorFacts.cs (2)
256
case ErrorCode.
WRN_MainCantBeGeneric
:
604
or ErrorCode.
WRN_MainCantBeGeneric
Generated\ErrorFacts.Generated.cs (1)
31
case ErrorCode.
WRN_MainCantBeGeneric
:
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (7)
CodeGen\CodeGenAsyncMainTests.cs (1)
1077
Diagnostic(ErrorCode.
WRN_MainCantBeGeneric
, "Main").WithArguments("A.Main<T>()").WithLocation(6, 23),
Emit\EntryPointTests.cs (6)
484
Diagnostic(ErrorCode.
WRN_MainCantBeGeneric
, "Main").WithArguments("C.Main<T>()"),
486
Diagnostic(ErrorCode.
WRN_MainCantBeGeneric
, "Main").WithArguments("C.CC<T>.Main()"),
488
Diagnostic(ErrorCode.
WRN_MainCantBeGeneric
, "Main").WithArguments("D<T>.Main()"),
490
Diagnostic(ErrorCode.
WRN_MainCantBeGeneric
, "Main").WithArguments("D<T>.DD.Main()"));
497
Diagnostic(ErrorCode.
WRN_MainCantBeGeneric
, "Main").WithArguments("C.Main<T>()"),
654
Diagnostic(ErrorCode.
WRN_MainCantBeGeneric
, "Main").WithArguments("C.Main<T>()"),
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Diagnostics\DiagnosticTest.cs (1)
2958
case ErrorCode.
WRN_MainCantBeGeneric
: