Skip to content

Commit

Permalink
Add intrinsic tests for nested types too
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergio0694 committed Jan 18, 2024
1 parent d7103b6 commit afde0ce
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/tests/JIT/Intrinsics/TypeIntrinsics.cs
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,8 @@ private static void IsGenericTypeTests()

IsTrue(typeof(GenericSimpleClass<int>).IsGenericType);
IsTrue(typeof(GenericSimpleClass<>).IsGenericType);
IsTrue(typeof(GenericSimpleClass<int>.Nested).IsGenericType);
IsTrue(typeof(GenericSimpleClass<>.Nested).IsGenericType);
IsTrue(typeof(GenericEnumClass<SimpleEnum>).IsGenericType);
IsTrue(typeof(GenericEnumClass<>).IsGenericType);
IsTrue(typeof(IGenericInterface<string>).IsGenericType);
Expand Down Expand Up @@ -325,7 +327,10 @@ static void ThrowsNRE(Action action, [CallerLineNumber] int line = 0, [CallerFil
}

public class GenericSimpleClass<T>
{
{
public class Nested
{
}
}

public class DerivedGenericSimpleClass : GenericSimpleClass<string>
Expand Down

0 comments on commit afde0ce

Please sign in to comment.