mirror of
https://github.com/GaloisInc/cryptol.git
synced 2024-12-18 05:21:57 +03:00
f609b36225
The name "demote" is only meaningful to those who already know what the Cryptol primitive does. Also, due to recent changes in the error and warning messages, the name "demote" is showing up much more often in REPL output. For example: Defaulting type argument 'rep' of 'demote' to [2] Showing a specific instance of polymorphic result: * Using 'Integer' for type argument 'rep' of 'Cryptol::demote' These messages will hopefully be made less confusing to non-experts if the name "demote" is replaced with "number".
32 lines
865 B
Plaintext
32 lines
865 B
Plaintext
Loading module Cryptol
|
|
Loading module Cryptol
|
|
Loading module test03
|
|
module test03
|
|
import Cryptol
|
|
/* Not recursive */
|
|
test03::test : {a} (fin a, a >= width a) => [a]
|
|
test03::test = \{a} (fin a, a >= width a) ->
|
|
test03::foo [a] <>
|
|
where
|
|
/* Not recursive */
|
|
test03::foo : {b} (Literal a b) => b
|
|
test03::foo = \{b} (Literal a b) -> Cryptol::number a b <>
|
|
|
|
|
|
|
|
Loading module Cryptol
|
|
Loading module test03
|
|
module test03
|
|
import Cryptol
|
|
/* Not recursive */
|
|
test03::test : {a} (fin a, a >= width a) => [a]
|
|
test03::test = \{a} (fin a, a >= width a) ->
|
|
test03::foo
|
|
where
|
|
/* Not recursive */
|
|
test03::foo : [a]
|
|
test03::foo = Cryptol::number a [a] <>
|
|
|
|
|
|
|