14 references to ERR_FieldCantHaveVoidType
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
1032
or ErrorCode.
ERR_FieldCantHaveVoidType
Symbols\Source\SourceMemberFieldSymbol.cs (1)
61
diagnostics.Add(ErrorCode.
ERR_FieldCantHaveVoidType
, getTypeErrorLocation());
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Semantics\RecordTests.cs (1)
1310
Diagnostic(ErrorCode.
ERR_FieldCantHaveVoidType
, "void").WithLocation(12, 12),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (4)
Semantics\RecordStructTests.cs (1)
1635
Diagnostic(ErrorCode.
ERR_FieldCantHaveVoidType
, "void").WithLocation(12, 12),
Semantics\SemanticErrorTests.cs (3)
11694
Diagnostic(ErrorCode.
ERR_FieldCantHaveVoidType
, "void"));
11706
Diagnostic(ErrorCode.
ERR_FieldCantHaveVoidType
, "var"));
12158
Diagnostic(ErrorCode.
ERR_FieldCantHaveVoidType
, "var").WithLocation(9, 1));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (7)
Symbols\Source\EventTests.cs (1)
877
Diagnostic(ErrorCode.
ERR_FieldCantHaveVoidType
, "void"),
Symbols\Source\FieldTests.cs (2)
318
Diagnostic(ErrorCode.
ERR_FieldCantHaveVoidType
, "void").WithLocation(5, 23),
386
Diagnostic(ErrorCode.
ERR_FieldCantHaveVoidType
, "void").WithLocation(5, 23),
Symbols\SymbolErrorTests.cs (4)
12389
Diagnostic(ErrorCode.
ERR_FieldCantHaveVoidType
, "void"),
12392
Diagnostic(ErrorCode.
ERR_FieldCantHaveVoidType
, "void"),
12395
Diagnostic(ErrorCode.
ERR_FieldCantHaveVoidType
, "void"),
12398
Diagnostic(ErrorCode.
ERR_FieldCantHaveVoidType
, "void"),