2014-12-16 04:48:25 +03:00
|
|
|
Loading module Cryptol
|
|
|
|
Loading module Cryptol
|
|
|
|
Loading module test04
|
|
|
|
module test04
|
|
|
|
import Cryptol
|
|
|
|
/* Not recursive */
|
2015-02-26 04:21:51 +03:00
|
|
|
test04::test : {a, b} (fin b, b >= 4) => a -> ((a, ()), (a, [b]))
|
|
|
|
test04::test = \{a, b} (fin b, b >= 4) (a : a) ->
|
2015-06-10 00:27:43 +03:00
|
|
|
(f () (), f [b] (Cryptol::demote 10 b <> <> <>))
|
2014-12-16 04:48:25 +03:00
|
|
|
where
|
|
|
|
/* Not recursive */
|
|
|
|
f : {c} c -> (a, c)
|
|
|
|
f = \{c} (x : c) -> (a, x)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Loading module Cryptol
|
|
|
|
Loading module test04
|
2015-02-18 02:27:59 +03:00
|
|
|
[warning] at ./test04.cry:1:1--5:14:
|
2014-12-16 04:48:25 +03:00
|
|
|
Defaulting type parameter 'bits'
|
|
|
|
of literal or demoted expression
|
2015-02-18 02:27:59 +03:00
|
|
|
at ./test04.cry:3:19--3:21
|
2014-12-16 04:48:25 +03:00
|
|
|
to 4
|
|
|
|
|
2015-02-18 02:27:59 +03:00
|
|
|
[error] at ./test04.cry:3:19--3:21:
|
2014-12-16 04:48:25 +03:00
|
|
|
Type mismatch:
|
2014-12-30 21:43:38 +03:00
|
|
|
Expected type: ()
|
2015-06-10 00:27:43 +03:00
|
|
|
Inferred type: [?z7]
|
2014-12-16 04:48:25 +03:00
|
|
|
where
|
2015-06-10 00:27:43 +03:00
|
|
|
?z7 is type parameter 'bits'
|
2014-12-16 04:48:25 +03:00
|
|
|
of literal or demoted expression
|
2015-02-18 02:27:59 +03:00
|
|
|
at ./test04.cry:3:19--3:21
|