Strip outer 'mutable' off slot when deciding if pred can apply.
This commit is contained in:
parent
2d40bc669c
commit
01cfcfab13
1 changed files with 3 additions and 2 deletions
|
@ -68,9 +68,10 @@ let determine_constr_key
|
||||||
if referent_is_slot cx aid
|
if referent_is_slot cx aid
|
||||||
then
|
then
|
||||||
if type_has_state
|
if type_has_state
|
||||||
(slot_ty (get_slot cx aid))
|
(strip_mutable_or_constrained_ty
|
||||||
|
(slot_ty (get_slot cx aid)))
|
||||||
then err (Some aid)
|
then err (Some aid)
|
||||||
"predicate applied to slot of mutable type"
|
"predicate applied to slot of state type"
|
||||||
else aid
|
else aid
|
||||||
else
|
else
|
||||||
(* Items are always constant, they're ok.
|
(* Items are always constant, they're ok.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue