13 references to WRN_MainCantBeGeneric
Microsoft.CodeAnalysis.CSharp (5)
Compilation\CSharpCompilation.cs (2)
2017noMainFoundDiagnostics.Add(ErrorCode.WRN_MainCantBeGeneric, candidate.GetFirstLocation(), candidate); 2101if (diagnostic.Code == (int)ErrorCode.WRN_InvalidMainSig || diagnostic.Code == (int)ErrorCode.WRN_MainCantBeGeneric)
Errors\ErrorFacts.cs (2)
256case ErrorCode.WRN_MainCantBeGeneric: 604or 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)
2958case ErrorCode.WRN_MainCantBeGeneric: