mirror of
https://github.com/GaloisInc/cryptol.git
synced 2024-12-26 09:25:56 +03:00
Remove implicit Bit
type signature on rhs of property
declarations.
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.
This commit is contained in:
parent
3a154f948a
commit
2b568897da
@ -331,7 +331,7 @@ mkPoly rng terms = mk 0 (map fromInteger bits)
|
|||||||
mkProperty :: LPName -> [Pattern PName] -> Expr PName -> Decl PName
|
mkProperty :: LPName -> [Pattern PName] -> Expr PName -> Decl PName
|
||||||
mkProperty f ps e = DBind Bind { bName = f
|
mkProperty f ps e = DBind Bind { bName = f
|
||||||
, bParams = reverse ps
|
, bParams = reverse ps
|
||||||
, bDef = at e (Located emptyRange (DExpr (ETyped e TBit)))
|
, bDef = at e (Located emptyRange (DExpr e))
|
||||||
, bSignature = Nothing
|
, bSignature = Nothing
|
||||||
, bPragmas = [PragmaProperty]
|
, bPragmas = [PragmaProperty]
|
||||||
, bMono = False
|
, bMono = False
|
||||||
|
@ -1 +0,0 @@
|
|||||||
https://github.com/GaloisInc/cryptol/issues/224
|
|
@ -18,7 +18,7 @@ test3 x = x
|
|||||||
/**
|
/**
|
||||||
* Test that doc strings work on property declarations
|
* Test that doc strings work on property declarations
|
||||||
*/
|
*/
|
||||||
property test4 x = x
|
property test4 x = (x : Bit)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test that doc strings work on fixity declarations
|
* Test that doc strings work on fixity declarations
|
||||||
|
Loading…
Reference in New Issue
Block a user