-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(#41) ImportLogic: do not skip static interface methods
- Loading branch information
Showing
6 changed files
with
75 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
tests/Refasmer.Tests/data/IntegrationTests.InterfaceImplementations.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
public class: RefasmerTestAssembly.InterfaceImplementations | ||
- interface impl: RefasmerTestAssembly.IWithStaticMethods`1<RefasmerTestAssembly.InterfaceImplementations> | ||
methods: | ||
- Equals(System.Object obj): System.Boolean: | ||
- GetHashCode(): System.Int32: | ||
- op_Equality(RefasmerTestAssembly.InterfaceImplementations a, RefasmerTestAssembly.InterfaceImplementations b): System.Boolean: | ||
- op_Inequality(RefasmerTestAssembly.InterfaceImplementations a, RefasmerTestAssembly.InterfaceImplementations b): System.Boolean: | ||
- .ctor(): System.Void: | ||
public interface: RefasmerTestAssembly.IWithStaticMethods`1 | ||
methods: | ||
- op_Equality(TSelf a, TSelf b): System.Boolean: | ||
- <abstract> | ||
- op_Inequality(TSelf a, TSelf b): System.Boolean: | ||
- <abstract> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using System; | ||
|
||
namespace RefasmerTestAssembly; | ||
|
||
public interface IWithStaticMethods<TSelf> where TSelf : IWithStaticMethods<TSelf> | ||
{ | ||
static abstract bool operator ==(TSelf a, TSelf b); | ||
static abstract bool operator !=(TSelf a, TSelf b); | ||
} | ||
public class InterfaceImplementations : IWithStaticMethods<InterfaceImplementations> | ||
{ | ||
public override bool Equals(object? obj) => throw new NotSupportedException(); | ||
|
||
public override int GetHashCode() => throw new NotSupportedException(); | ||
|
||
public static bool operator ==(InterfaceImplementations a, InterfaceImplementations b) => throw new NotSupportedException(); | ||
|
||
public static bool operator !=(InterfaceImplementations a, InterfaceImplementations b) => throw new NotSupportedException(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters