diff options
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.cs | 3 |
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; |