mirror of https://github.com/icsharpcode/ILSpy.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
697 B
49 lines
697 B
#pragma warning disable CS9124 |
|
|
|
using System; |
|
|
|
namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty |
|
{ |
|
internal class Issue3452 |
|
{ |
|
private struct Data |
|
{ |
|
public object Obj; |
|
} |
|
|
|
private class C1(object obj) |
|
{ |
|
internal Data d = new Data { |
|
Obj = obj |
|
}; |
|
} |
|
|
|
private class C2(object obj) |
|
{ |
|
public object Obj => obj; |
|
} |
|
|
|
private class C3(StringComparison comparison) |
|
{ |
|
private StringComparison _comparison = comparison; |
|
|
|
internal StringComparison Test() |
|
{ |
|
return comparison; |
|
} |
|
} |
|
|
|
private struct S1(object obj) |
|
{ |
|
internal Data d = new Data { |
|
Obj = obj |
|
}; |
|
} |
|
|
|
private struct S2(object obj) |
|
{ |
|
public object Obj => obj; |
|
} |
|
} |
|
|
|
}
|
|
|