diff options
Diffstat (limited to 'src/ILLink.RoslynAnalyzer/TrimAnalysis/ParameterProxy.cs')
-rw-r--r-- | src/ILLink.RoslynAnalyzer/TrimAnalysis/ParameterProxy.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ILLink.RoslynAnalyzer/TrimAnalysis/ParameterProxy.cs b/src/ILLink.RoslynAnalyzer/TrimAnalysis/ParameterProxy.cs index 6ee65cbb9..fe01aeaf5 100644 --- a/src/ILLink.RoslynAnalyzer/TrimAnalysis/ParameterProxy.cs +++ b/src/ILLink.RoslynAnalyzer/TrimAnalysis/ParameterProxy.cs @@ -17,7 +17,7 @@ namespace ILLink.Shared.TypeSystemProxy public partial ReferenceKind GetReferenceKind () => IsImplicitThis - ? ((ITypeSymbol) Method.Method.ContainingSymbol).IsValueType + ? Method.Method.ContainingType.IsValueType ? ReferenceKind.Ref : ReferenceKind.None : Method.Method.Parameters[MetadataIndex].RefKind switch { @@ -54,4 +54,4 @@ namespace ILLink.Shared.TypeSystemProxy public bool IsTypeOf (WellKnownType type) => ParameterType.IsTypeOf (type); } -}
\ No newline at end of file +} |