|
|
@ -44,7 +44,7 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty |
|
|
|
public record PairWithPrimaryCtor<A, B>(A First, B Second); |
|
|
|
public record PairWithPrimaryCtor<A, B>(A First, B Second); |
|
|
|
|
|
|
|
|
|
|
|
public record PrimaryCtor(int A, string B); |
|
|
|
public record PrimaryCtor(int A, string B); |
|
|
|
public record PrimaryCtorWithAttribute([RecordTest("param")] [property: RecordTest("property")][field: RecordTest("field")] int a); |
|
|
|
public record PrimaryCtorWithAttribute([RecordTest("param")][property: RecordTest("property")][field: RecordTest("field")] int a); |
|
|
|
public record PrimaryCtorWithField(int A, string B) |
|
|
|
public record PrimaryCtorWithField(int A, string B) |
|
|
|
{ |
|
|
|
{ |
|
|
|
public double C = 1.0; |
|
|
|
public double C = 1.0; |
|
|
@ -169,7 +169,7 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty |
|
|
|
public record struct PairWithPrimaryCtor<A, B>(A First, B Second); |
|
|
|
public record struct PairWithPrimaryCtor<A, B>(A First, B Second); |
|
|
|
|
|
|
|
|
|
|
|
public record struct PrimaryCtor(int A, string B); |
|
|
|
public record struct PrimaryCtor(int A, string B); |
|
|
|
public record struct PrimaryCtorWithAttribute([RecordTest("param")] [property: RecordTest("property")][field: RecordTest("field")] int a); |
|
|
|
public record struct PrimaryCtorWithAttribute([RecordTest("param")][property: RecordTest("property")][field: RecordTest("field")] int a); |
|
|
|
public record struct PrimaryCtorWithField(int A, string B) |
|
|
|
public record struct PrimaryCtorWithField(int A, string B) |
|
|
|
{ |
|
|
|
{ |
|
|
|
public double C = 1.0; |
|
|
|
public double C = 1.0; |
|
|
@ -242,27 +242,3 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty |
|
|
|
} |
|
|
|
} |
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
} |
|
|
|
} |
|
|
|
#if !NET60
|
|
|
|
|
|
|
|
namespace System.Runtime.CompilerServices |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
[AttributeUsage(AttributeTargets.All, AllowMultiple = true, Inherited = false)] |
|
|
|
|
|
|
|
internal sealed class CompilerFeatureRequiredAttribute : Attribute |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
public CompilerFeatureRequiredAttribute(string featureName) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
internal class IsExternalInit |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if !NET70
|
|
|
|
|
|
|
|
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false, Inherited = false)] |
|
|
|
|
|
|
|
internal sealed class RequiredMemberAttribute : Attribute |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if !NET60
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|