Skip to content

Commit

Permalink
Add regression test for #894.
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Huffman committed Sep 23, 2020
1 parent 439ee28 commit eaab5e9
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/issues/issue894.cry
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
type Int n = Integer

foo : {n} (fin n) => [n] -> Int n
foo x = `n
2 changes: 2 additions & 0 deletions tests/issues/issue894.icry
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
:l issue894.cry
:t foo 0x1
7 changes: 7 additions & 0 deletions tests/issues/issue894.icry.stdout
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Loading module Cryptol
Loading module Cryptol
Loading module Main
[warning] at issue894.cry:1:10--1:11 Unused name: n
[warning] at issue894.cry:1:6--1:9:
Assuming n to have a numeric type
foo 0x1 : Int 4

0 comments on commit eaab5e9

Please sign in to comment.