-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
skip field visibility on resem and fix some generics issues (#569)
* skip field visibility on resem and fix some generics issues * add test for scoped type inst * fix types
- Loading branch information
Showing
5 changed files
with
67 additions
and
32 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
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,20 @@ | ||
import deps/mfieldvis | ||
|
||
var foo = Foo(public: 123) | ||
discard getPrivate(foo) | ||
discard getPrivateTempl(foo) | ||
|
||
var generic = Generic[int](public: 123) | ||
discard getPrivate(foo) | ||
discard getPrivateTempl(foo) | ||
generic = createGeneric[int](456) | ||
|
||
template resem() = | ||
foo = Foo(public: 123) | ||
generic = Generic[int](public: 123) | ||
discard getPrivateTempl(generic) | ||
generic = createGeneric[int](456) | ||
resem() | ||
|
||
proc scope() = | ||
let differentGeneric = createGeneric[float](123) |