-
Notifications
You must be signed in to change notification settings - Fork 232
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3558 from W95Psp/fix-restricted-open
Fix restricted open for constructors of type with indices
- Loading branch information
Showing
4 changed files
with
79 additions
and
28 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,12 @@ | ||
module Bug3522.Def | ||
|
||
class a_class (a_type:Type) = { | ||
a_field : a_type -> a_type; | ||
} | ||
|
||
type b_struct (b_type: Type) = { | ||
b_field : b_type -> b_type; | ||
} | ||
|
||
type foo (foo_type_arg1: nat): foo_type_arg2:nat -> Type | ||
= | FooConstructor : foo_cons_arg1:nat -> foo foo_type_arg1 12 |
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,6 @@ | ||
module Bug3522 | ||
|
||
open Bug3522.Def {a_class as x} | ||
open Bug3522.Def {b_struct as y} | ||
open Bug3522.Def {foo as z} | ||
|