Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/coreclr/tools/aot/ILCompiler.Compiler/IL/ILImporter.Scanner.cs')
-rw-r--r--src/coreclr/tools/aot/ILCompiler.Compiler/IL/ILImporter.Scanner.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/coreclr/tools/aot/ILCompiler.Compiler/IL/ILImporter.Scanner.cs b/src/coreclr/tools/aot/ILCompiler.Compiler/IL/ILImporter.Scanner.cs
index c07d679f9be..c0850138a72 100644
--- a/src/coreclr/tools/aot/ILCompiler.Compiler/IL/ILImporter.Scanner.cs
+++ b/src/coreclr/tools/aot/ILCompiler.Compiler/IL/ILImporter.Scanner.cs
@@ -424,7 +424,8 @@ namespace Internal.IL
methodAfterConstraintResolution = directMethod;
- Debug.Assert(!methodAfterConstraintResolution.OwningType.IsInterface);
+ Debug.Assert(!methodAfterConstraintResolution.OwningType.IsInterface
+ || methodAfterConstraintResolution.Signature.IsStatic);
resolvedConstraint = true;
exactType = constrained;