diff --git a/ICSharpCode.Decompiler.Tests/TestCases/Pretty/Issue3909.cs b/ICSharpCode.Decompiler.Tests/TestCases/Pretty/Issue3909.cs index 8d8284974..f46d5df67 100644 --- a/ICSharpCode.Decompiler.Tests/TestCases/Pretty/Issue3909.cs +++ b/ICSharpCode.Decompiler.Tests/TestCases/Pretty/Issue3909.cs @@ -207,6 +207,32 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty } } + public abstract class MethodChainBase + { + public virtual T? DependentOnClassConstrained(T? value, U other) where T : U where U : class + { + return value; + } + + public virtual T? DependentOnClassType(T? value, U other) where T : U where U : Node + { + return value; + } + } + + public sealed class MethodChainDerived : MethodChainBase + { + public override T? DependentOnClassConstrained(T? value, U other) where T : default + { + return value; + } + + public override T? DependentOnClassType(T? value, U other) where T : class + { + return value; + } + } + public class ContainerBase where TOuter : class { public virtual TOuter? Pick(TItem item)