@@ -145,7 +145,7 @@ let share_typ t =
145145
146146let share_typfield' = function
147147 | TypF (c , tps , t ) -> TypF (c , tps , t )
148- | ValF (x , t , m ) -> ValF (x , share_typ t , m )
148+ | ValF (x , ix , t , m ) -> ValF (x , ix , share_typ t , m )
149149
150150let share_typfield (tf : typ_field ) = { tf with it = share_typfield' tf.it }
151151
@@ -518,11 +518,12 @@ typ_field :
518518 | TYPE c= typ_id tps= type_typ_params_opt EQ t= typ
519519 { TypF (c, tps, t) @@ at $ sloc }
520520 | mut= var_opt x= id COLON t= typ
521- { ValF (x, t, mut) @@ at $ sloc }
521+ { ValF (x, None , t, mut) @@ at $ sloc }
522522 | x= id tps= typ_params_opt t1= typ_nullary COLON t2= typ
523523 { let t = funcT(Type. Local @@ no_region, tps, t1, t2)
524524 @! span x.at t2.at in
525- ValF (x, t, Const @@ no_region) @@ at $ sloc }
525+ (* TODO *)
526+ ValF (x, None , t, Const @@ no_region) @@ at $ sloc }
526527
527528typ_tag :
528529 | HASH x= id t= annot_opt
@@ -1089,11 +1090,11 @@ typ_dec :
10891090
10901091stab_field :
10911092 | STABLE mut= var_opt x= id COLON t= typ
1092- { ValF (x, t, mut) @@ at $ sloc }
1093+ { ValF (x, None , t, mut) @@ at $ sloc }
10931094
10941095pre_stab_field :
10951096 | r= req mut= var_opt x= id COLON t= typ
1096- { (r, ValF (x, t, mut) @@ at $ sloc) }
1097+ { (r, ValF (x, None , t, mut) @@ at $ sloc) }
10971098
10981099% inline req :
10991100 | STABLE { false @@ at $ sloc }
0 commit comments