Skip to content

Tests failed with error message: violates the constraint of type parameter 'T'. #54941

Closed
@VincentBu

Description

@VincentBu

Run: runtime-coreclr libraries-jitstress 20210629.1

Failed tests:


- System.Text.Tests.TranscodingStreamTests.Flush_FlushesInnerStreamButNotDecodedState

System.ArgumentException : Type to mock must be an interface or an abstract or non-sealed class. ---- System.TypeLoadException : GenericArguments[0], 'System.Int32', on 'System.Collections.Generic.GenericEqualityComparer`1[T]' violates the constraint of type parameter 'T'.
- System.Collections.Immutable.Tests.ImmutableSortedDictionaryTest.Remove_FirstKey_RemovesKeyValuePair

System.TypeLoadException : GenericArguments[0], 'System.Int32', on 'System.Collections.Generic.GenericEqualityComparer`1[T]' violates the constraint of type parameter 'T'.
- System.Collections.ObjectModel.Tests.PublicMethodsTest.RemoveAtTest

System.Security.VerificationException : Method System.SpanHelpers.IndexOf: type argument 'System.Int64' violates the constraint of type parameter 'T'.
- System.Collections.Tests.Queue_Generic_Tests_int.IGenericSharedAPI_Add_AfterRemovingAnyValue(count: 1)

System.TypeLoadException : GenericArguments[0], 'System.Int32', on 'System.Collections.Generic.GenericEqualityComparer`1[T]' violates the constraint of type parameter 'T'.
- System.Diagnostics.Tests.StackTraceTests.ToString_ShowILOffset

System.TypeLoadException : GenericArguments[0], 'System.Int32', on 'System.Collections.Generic.GenericEqualityComparer`1[T]' violates the constraint of type parameter 'T'.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions