-
Notifications
You must be signed in to change notification settings - Fork 271
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable AutoExtern to consume from multiple source files (#2292)
- Loading branch information
1 parent
5eb0ee7
commit 5058d5a
Showing
7 changed files
with
55 additions
and
41 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
namespace NS; | ||
|
||
public interface Intf { | ||
public string Prop { get; } | ||
} |
4 changes: 0 additions & 4 deletions
4
Source/AutoExtern.Test/Minimal/Library.cs → Source/AutoExtern.Test/Minimal/Library2.cs
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
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,21 @@ | ||
namespace Library; | ||
|
||
public interface LinkedList<T> { | ||
public int Length { get; } | ||
} | ||
|
||
public class Nil<T> : LinkedList<T> { | ||
public int Length => 0; | ||
} | ||
|
||
public class Cons<T> : LinkedList<T> { | ||
public T hd; | ||
public LinkedList<T> tl; | ||
|
||
public int Length => 1 + tl.Length; | ||
|
||
public Cons(T hd, LinkedList<T> tl) { | ||
this.hd = hd; | ||
this.tl = tl; | ||
} | ||
} |
20 changes: 0 additions & 20 deletions
20
...toExtern.Test/Tutorial/Library/Library.cs → ...oExtern.Test/Tutorial/Library/Library2.cs
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