diff --git a/src/tools/illink/test/Mono.Linker.Tests.Cases/DataFlow/AnnotatedMembersAccessedViaReflection.cs b/src/tools/illink/test/Mono.Linker.Tests.Cases/DataFlow/AnnotatedMembersAccessedViaReflection.cs index 4daf4aec7f545e..c977e12f03e121 100644 --- a/src/tools/illink/test/Mono.Linker.Tests.Cases/DataFlow/AnnotatedMembersAccessedViaReflection.cs +++ b/src/tools/illink/test/Mono.Linker.Tests.Cases/DataFlow/AnnotatedMembersAccessedViaReflection.cs @@ -895,6 +895,13 @@ class DelegateCreation // is the delegate type (INamedTypeSymbol), not a method. delegate void DelegateWithDefaultParameter(Type type = null); + // Primary constructors generate operation blocks whose OwningSymbol + // is the containing type (INamedTypeSymbol), not the constructor. + class PrimaryConstructor(Type type) + { + Type _type = type; + } + static void TestField() { var d = new UnannotatedDelegate(field);