diff options
| author | Brian Campbell | 2019-06-21 10:57:15 +0100 |
|---|---|---|
| committer | Brian Campbell | 2019-06-21 10:57:15 +0100 |
| commit | 7a5f75524c59bf885d7c31ed1ae8a7cfe725d5dc (patch) | |
| tree | 558016a948d65b46ef7126b0d6fb536cd51e7a72 /test | |
| parent | b78b3ec223cbd56e20adcba5e366f7940f220e12 (diff) | |
Coq: be more careful when dealing with wildcard argument patterns
If they're merged with a type variable then we still need to name the
argument so that it can be used in other types.
Diffstat (limited to 'test')
| -rw-r--r-- | test/coq/pass/wildcardmerge.sail | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/coq/pass/wildcardmerge.sail b/test/coq/pass/wildcardmerge.sail new file mode 100644 index 00000000..ca83b47d --- /dev/null +++ b/test/coq/pass/wildcardmerge.sail @@ -0,0 +1,10 @@ +default Order dec +$include <prelude.sail> + +/* Checks that when merging the type variable with the integer argument, + that we name the integer so that we can write the type of the + second argument. */ + +val f : forall 'n, 'n >= 0. (int('n), bits('n)) -> unit + +function f(_,_) = () |
