1 write to _swtBadArity
Microsoft.CSharp (1)
Microsoft\CSharp\RuntimeBinder\Semantics\MemberLookup.cs (1)
500
_swtBadArity
= new SymWithType();
9 references to _swtBadArity
Microsoft.CSharp (9)
Microsoft\CSharp\RuntimeBinder\Semantics\MemberLookup.cs (9)
125
if (!
_swtBadArity
)
127
_swtBadArity
.Set(symCur, typeCur);
643
if (
_swtBadArity
)
646
Debug.Assert(!(
_swtBadArity
.Sym is AggregateSymbol));
647
if (
_swtBadArity
.Sym is MethodSymbol badMeth)
650
return ErrorHandling.Error(cvar > 0 ? ErrorCode.ERR_BadArity : ErrorCode.ERR_HasNoTypeVars,
_swtBadArity
, new ErrArgSymKind(
_swtBadArity
.Sym), cvar);
653
return ErrorHandling.Error(ErrorCode.ERR_TypeArgsNotAllowed,
_swtBadArity
, new ErrArgSymKind(
_swtBadArity
.Sym));