-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixes resolution of methods takeing generic parameters defined in the…
… declaring type (#240)
- Loading branch information
Showing
5 changed files
with
71 additions
and
9 deletions.
There are no files selected for viewing
10 changes: 2 additions & 8 deletions
10
...rces/Integration/Generics/UsageOfNonGenericMethodOnGenericTypeFromExternalAssembly.cs.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 |
---|---|---|
@@ -1,10 +1,4 @@ | ||
using System; | ||
class C<T> | ||
class UsageOfNonGenericMethodOnGenericTypeFromExternalAssembly | ||
{ | ||
public void Method(T t) {} | ||
} | ||
|
||
class UsageOfNonGenericMethodOnGenericType | ||
{ | ||
void M(C<int> c) => c.Method(42); | ||
bool M<T>(System.IEquatable<T> lhs, T rhs) => lhs.Equals(rhs); | ||
} |
4 changes: 4 additions & 0 deletions
4
...ces/Integration/Generics/UsageOfNonGenericMethodOnGenericTypeFromExternalAssembly2.cs.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,4 @@ | ||
class UsageOfNonGenericMethodOnGenericTypeFromExternalAssembly | ||
{ | ||
bool M<T>(System.IEquatable<T> lhs, T rhs) => lhs.Equals(rhs); | ||
} |
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