30 references to ERR_BadTypeforThis
Microsoft.CodeAnalysis.CSharp (3)
Errors\ErrorFacts.cs (1)
1195
or ErrorCode.
ERR_BadTypeforThis
Symbols\Extensions\SynthesizedExtensionMarker.cs (1)
98
diagnostics.Add(ErrorCode.
ERR_BadTypeforThis
, parameterTypeSyntax, parameterType);
Symbols\Source\SourceOrdinaryMethodSymbol.cs (1)
218
diagnostics.Add(ErrorCode.
ERR_BadTypeforThis
, loc, parameter0Type.Type);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (22)
Semantics\CollectionExpressionTests.cs (1)
41130
Diagnostic(ErrorCode.
ERR_BadTypeforThis
, "dynamic").WithArguments("dynamic").WithLocation(11, 36));
Semantics\ExtensionOperatorsTests.cs (12)
4183
Diagnostic(ErrorCode.
ERR_BadTypeforThis
, "void*").WithArguments("void*").WithLocation(3, 15)
4214
Diagnostic(ErrorCode.
ERR_BadTypeforThis
, "void*").WithArguments("void*").WithLocation(3, 15)
6774
Diagnostic(ErrorCode.
ERR_BadTypeforThis
, "dynamic").WithArguments("dynamic").WithLocation(3, 15)
10384
Diagnostic(ErrorCode.
ERR_BadTypeforThis
, "void*").WithArguments("void*").WithLocation(3, 15),
10414
Diagnostic(ErrorCode.
ERR_BadTypeforThis
, "void*").WithArguments("void*").WithLocation(3, 19),
19522
Diagnostic(ErrorCode.
ERR_BadTypeforThis
, "void*").WithArguments("void*").WithLocation(3, 15)
19561
Diagnostic(ErrorCode.
ERR_BadTypeforThis
, "void*").WithArguments("void*").WithLocation(3, 15)
19762
Diagnostic(ErrorCode.
ERR_BadTypeforThis
, "void*").WithArguments("void*").WithLocation(3, 15)
22673
Diagnostic(ErrorCode.
ERR_BadTypeforThis
, "dynamic").WithArguments("dynamic").WithLocation(3, 15)
26999
Diagnostic(ErrorCode.
ERR_BadTypeforThis
, "void*").WithArguments("void*").WithLocation(3, 15)
27028
Diagnostic(ErrorCode.
ERR_BadTypeforThis
, "void*").WithArguments("void*").WithLocation(3, 15)
27186
Diagnostic(ErrorCode.
ERR_BadTypeforThis
, "void*").WithArguments("void*").WithLocation(3, 19)
Semantics\ExtensionTests.cs (7)
4810
Diagnostic(ErrorCode.
ERR_BadTypeforThis
, "int*").WithArguments("int*").WithLocation(3, 15),
4813
Diagnostic(ErrorCode.
ERR_BadTypeforThis
, "int*").WithArguments("int*").WithLocation(8, 32));
15725
Diagnostic(ErrorCode.
ERR_BadTypeforThis
, "dynamic").WithArguments("dynamic").WithLocation(7, 15),
15728
Diagnostic(ErrorCode.
ERR_BadTypeforThis
, "dynamic").WithArguments("dynamic").WithLocation(12, 32));
41627
Diagnostic(ErrorCode.
ERR_BadTypeforThis
, "int*").WithArguments("int*").WithLocation(3, 15),
41722
Diagnostic(ErrorCode.
ERR_BadTypeforThis
, "int*").WithArguments("int*").WithLocation(3, 15),
41725
Diagnostic(ErrorCode.
ERR_BadTypeforThis
, "int*").WithArguments("int*").WithLocation(7, 15));
Semantics\ExtensionTests2.cs (2)
22687
Diagnostic(ErrorCode.
ERR_BadTypeforThis
, "dynamic").WithArguments("dynamic").WithLocation(3, 15));
27911
Diagnostic(ErrorCode.
ERR_BadTypeforThis
, "dynamic").WithArguments("dynamic").WithLocation(4, 15));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\ScriptSemanticsTests.cs (1)
1124
Diagnostic(ErrorCode.
ERR_BadTypeforThis
, "dynamic").WithArguments("dynamic"));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (4)
Symbols\FunctionPointerTypeSymbolTests.cs (1)
1346
Diagnostic(ErrorCode.
ERR_BadTypeforThis
, "delegate*<void>").WithArguments("delegate*<void>").WithLocation(4, 25)
Symbols\SymbolErrorTests.cs (3)
14877
Diagnostic(ErrorCode.
ERR_BadTypeforThis
, "dynamic").WithArguments("dynamic"));
14889
Diagnostic(ErrorCode.
ERR_BadTypeforThis
, "char*").WithArguments("char*").WithLocation(3, 42));
15027
Diagnostic(ErrorCode.
ERR_BadTypeforThis
, "dynamic").WithArguments("dynamic").WithLocation(5, 32),