mirror of
https://github.com/GaloisInc/cryptol.git
synced 2024-12-25 08:54:31 +03:00
2b568897da
Fixes #224. It might be desirable to add some other check for `property` declarations to make sure that their types are predicates of some arity.
41 lines
589 B
Plaintext
41 lines
589 B
Plaintext
|
|
/**
|
|
* Test that doc strings work on signatures
|
|
*/
|
|
test1 : Bit
|
|
test1 = True
|
|
|
|
/**
|
|
* Test that doc strings work on value bindings
|
|
*/
|
|
test2 = True
|
|
|
|
/**
|
|
* Test that doc strings work on function bindings
|
|
*/
|
|
test3 x = x
|
|
|
|
/**
|
|
* Test that doc strings work on property declarations
|
|
*/
|
|
property test4 x = (x : Bit)
|
|
|
|
/**
|
|
* Test that doc strings work on fixity declarations
|
|
*/
|
|
infixl 5 ++
|
|
|
|
(++) : {a} a -> a -> a
|
|
x ++ _ = x
|
|
|
|
/**
|
|
* Test that doc strings are ignored on private declarations
|
|
*/
|
|
private test5 = ()
|
|
|
|
|
|
/**
|
|
* Test that doc strings are ignored on type synonyms
|
|
*/
|
|
type Foo = ()
|