@@ -1187,7 +1187,7 @@ function expand_unionall_def(ctx, srcref, lhs, rhs, is_const=true)
11871187 @ast ctx srcref [
11881188 K " block"
11891189 [K " =" rr [K " where" rhs lhs[2 : end ]. .. ]]
1190- [is_const ? K "const " : K " assign_const_if_global" name rr]
1190+ [is_const ? K "constdecl " : K " assign_const_if_global" name rr]
11911191 [K " latestworld_if_toplevel" ]
11921192 rr
11931193 ]
@@ -1246,7 +1246,7 @@ function expand_assignment(ctx, ex, is_const=false)
12461246 @ast ctx ex [
12471247 K " block"
12481248 sink_assignment (ctx, ex, rr, expand_forms_2 (ctx, rhs))
1249- [K "const " lhs rr]
1249+ [K "constdecl " lhs rr]
12501250 [K " latestworld" ]
12511251 [K " removable" rr]
12521252 ]
@@ -1290,7 +1290,7 @@ function expand_assignment(ctx, ex, is_const=false)
12901290 T = lhs[2 ]
12911291 res = if is_const
12921292 expand_forms_2 (ctx, ex, @ast ctx ex [
1293- K "const "
1293+ K "constdecl "
12941294 lhs[1 ]
12951295 convert_for_type_decl (ctx, ex, rhs, T, true )
12961296 ])
@@ -3434,7 +3434,7 @@ function expand_abstract_or_primitive_type(ctx, ex)
34343434 [K " call" " _equiv_typedef" :: K"core" name newtype_var]
34353435 ]
34363436 nothing_ (ctx, ex)
3437- [K "const " name newtype_var]
3437+ [K "constdecl " name newtype_var]
34383438 ]
34393439 [K " latestworld" ]
34403440 nothing_ (ctx, ex)
@@ -3988,7 +3988,7 @@ function expand_struct_def(ctx, ex, docs)
39883988 newtype_var
39893989 [K " call" " svec" :: K"core" field_types... ]
39903990 ]
3991- [K "const "
3991+ [K "constdecl "
39923992 global_struct_name
39933993 newtype_var
39943994 ]
0 commit comments