mirror of
https://github.com/GaloisInc/cryptol.git
synced 2024-12-17 04:44:39 +03:00
b4fbec108e
The core AST now always prints fully-qualified names.
36 lines
949 B
Plaintext
36 lines
949 B
Plaintext
Loading module Cryptol
|
|
Loading module Cryptol
|
|
Loading module test02
|
|
module test02
|
|
import Cryptol
|
|
/* Not recursive */
|
|
test02::test : {a, b} a -> b
|
|
test02::test = \{a, b} (a : a) ->
|
|
test02::f b a
|
|
where
|
|
/* Recursive */
|
|
test02::f : {c} a -> c
|
|
test02::f = \{c} (x : a) -> test02::g c a
|
|
test02::g : {c} a -> c
|
|
test02::g = \{c} (x : a) -> test02::f c x
|
|
|
|
|
|
|
|
Loading module Cryptol
|
|
Loading module test02
|
|
module test02
|
|
import Cryptol
|
|
/* Not recursive */
|
|
test02::test : {a, b} b -> a
|
|
test02::test = \{a, b} (a : b) ->
|
|
test02::f a
|
|
where
|
|
/* Recursive */
|
|
test02::f : b -> a
|
|
test02::f = \ (x : b) -> test02::g a
|
|
test02::g : b -> a
|
|
test02::g = \ (x : b) -> test02::f x
|
|
|
|
|
|
|