Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enh(csharp) generic modifiers, reference paths,
where
keyword (#2378)
* enh(csharp) add generic modifiers * enh(csharp) Allow reference path in class inheritance lists. Closes #1947. * enh(csharp) Support `where` keyword as class constraint
- Loading branch information
1 parent
3bb179c
commit 98b9cec
Showing
6 changed files
with
33 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<span class="hljs-keyword">interface</span> <span class="hljs-title">IObserver</span><<span class="hljs-keyword">in</span> T>; | ||
{} | ||
|
||
<span class="hljs-keyword">interface</span> <span class="hljs-title">IObservable</span><<span class="hljs-keyword">out</span> T>; | ||
{} | ||
|
||
<span class="hljs-keyword">public</span> <span class="hljs-keyword">delegate</span> <span class="hljs-keyword">void</span> DContravariant<<span class="hljs-keyword">in</span> A>(A argument); |
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,7 @@ | ||
interface IObserver<in T>; | ||
{} | ||
|
||
interface IObservable<out T>; | ||
{} | ||
|
||
public delegate void DContravariant<in A>(A argument); |
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