mirror of
https://github.com/GaloisInc/cryptol.git
synced 2024-12-29 10:53:31 +03:00
e9c22ad0cf
use that information to emit error messages rather than warnings. This provides more specific messages than simply allowing the affected type variables to remain uninstantiated and failing later. It also causes some examples that otherwise would have ambiguous types to fail earlier. This converts some test instances where REPL defaulting would eventually succeed into examples that fail outright instead. I largely think these instances are improvements.
8 lines
113 B
Plaintext
8 lines
113 B
Plaintext
f : {n} (fin n) => [n] -> [n]
|
|
f x = g x
|
|
where
|
|
m1 = x
|
|
|
|
g : {k} (fin k) => [k] -> [k]
|
|
g m0 = m0 ^ m1
|