diff options
author | Mike Voorhees <michaelv@unity3d.com> | 2017-04-28 22:00:11 +0300 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2017-05-04 11:23:06 +0300 |
commit | f688937f3cb3901c17acd689d94f377180c0646c (patch) | |
tree | c3a249915a7ef63a958ed98b11dc7a4afe35c78e /linker | |
parent | 401978f93efd948f972f52c9bb3e6ec468cdce8a (diff) |
Check IsImport during HasThis case as well
Diffstat (limited to 'linker')
-rw-r--r-- | linker/Mono.Linker.Steps/MarkStep.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linker/Mono.Linker.Steps/MarkStep.cs b/linker/Mono.Linker.Steps/MarkStep.cs index 32aed721c..b0c5025c5 100644 --- a/linker/Mono.Linker.Steps/MarkStep.cs +++ b/linker/Mono.Linker.Steps/MarkStep.cs @@ -1333,7 +1333,7 @@ namespace Mono.Linker.Steps { MarkFields (returnTypeDefinition, includeStaticFields); } - if (method.HasThis) { + if (method.HasThis && !method.DeclaringType.IsImport) { MarkFields (method.DeclaringType, includeStaticFields); } |