
6 changed files with 93 additions and 7 deletions
-
1ICSharpCode.Decompiler.Tests/ICSharpCode.Decompiler.Tests.csproj
-
6ICSharpCode.Decompiler.Tests/PrettyTestRunner.cs
-
3ICSharpCode.Decompiler.Tests/TestCases/Pretty/InterfaceTests.cs
-
69ICSharpCode.Decompiler.Tests/TestCases/Pretty/StaticAbstractInterfaceMembers.cs
-
7ICSharpCode.Decompiler/CSharp/CSharpDecompiler.cs
-
12ICSharpCode.Decompiler/CSharp/Syntax/TypeSystemAstBuilder.cs
@ -0,0 +1,69 @@ |
|||
using System; |
|||
|
|||
namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty.StaticAbstractInterfaceMembers |
|||
{ |
|||
public interface I |
|||
{ |
|||
abstract static int Capacity { get; } |
|||
abstract static int Count { get; set; } |
|||
abstract static int SetterOnly { set; } |
|||
abstract static event EventHandler E; |
|||
abstract static I CreateI(); |
|||
} |
|||
|
|||
public class X : I |
|||
{ |
|||
public static int Capacity { get; } |
|||
|
|||
public static int Count { get; set; } |
|||
|
|||
public static int SetterOnly { |
|||
set { |
|||
} |
|||
} |
|||
|
|||
public static event EventHandler E; |
|||
|
|||
public static I CreateI() |
|||
{ |
|||
return new X(); |
|||
} |
|||
} |
|||
|
|||
public class X2 : I |
|||
{ |
|||
public static int Capacity { |
|||
get { |
|||
throw new NotImplementedException(); |
|||
} |
|||
} |
|||
|
|||
public static int Count { |
|||
get { |
|||
throw new NotImplementedException(); |
|||
} |
|||
set { |
|||
throw new NotImplementedException(); |
|||
} |
|||
} |
|||
public static int SetterOnly { |
|||
set { |
|||
throw new NotImplementedException(); |
|||
} |
|||
} |
|||
|
|||
public static event EventHandler E { |
|||
add { |
|||
throw new NotImplementedException(); |
|||
} |
|||
remove { |
|||
throw new NotImplementedException(); |
|||
} |
|||
} |
|||
|
|||
public static I CreateI() |
|||
{ |
|||
throw new NotImplementedException(); |
|||
} |
|||
} |
|||
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue