mirror of
https://github.com/GaloisInc/cryptol.git
synced 2024-11-28 01:13:34 +03:00
3c59bf3231
The type variable name was the only change.
33 lines
931 B
Plaintext
33 lines
931 B
Plaintext
Loading module Cryptol
|
|
Loading module Cryptol
|
|
Loading module test04
|
|
module test04
|
|
import Cryptol
|
|
/* Not recursive */
|
|
test04::test : {a, b} (fin b, b >= 4) => a -> ((a, ()), (a, [b]))
|
|
test04::test = \{a, b} (fin b, b >= 4) (a : a) ->
|
|
(test04::f () (), test04::f [b] (Cryptol::demote 10 b <> <> <>))
|
|
where
|
|
/* Not recursive */
|
|
test04::f : {c} c -> (a, c)
|
|
test04::f = \{c} (x : c) -> (a, x)
|
|
|
|
|
|
|
|
Loading module Cryptol
|
|
Loading module test04
|
|
[warning] at ./test04.cry:1:1--5:14:
|
|
Defaulting type parameter 'bits'
|
|
of literal or demoted expression
|
|
at ./test04.cry:3:19--3:21
|
|
to 4
|
|
|
|
[error] at ./test04.cry:3:19--3:21:
|
|
Type mismatch:
|
|
Expected type: ()
|
|
Inferred type: [?c8]
|
|
where
|
|
?c8 is type parameter 'bits'
|
|
of literal or demoted expression
|
|
at ./test04.cry:3:19--3:21
|