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