@@ -1728,7 +1728,7 @@ type_check_fields(Env, TypedRecFields, [{record_field, _, {atom, _, _} = FieldWi
1728
1728
{VB1 , Cs1 } = type_check_expr_in (Env , FieldTy , Expr ),
1729
1729
{VB2 , Cs2 } = type_check_fields (Env , TypedRecFields , Fields , UnAssignedFields ),
1730
1730
{union_var_binds (VB1 , VB2 , Env # env .tenv ), constraints :combine (Cs1 ,Cs2 )};
1731
- type_check_fields (Env , TypedRecFields , [{record_field , _ , {var , _ , '_' }, Expr } | Fields ]
1731
+ type_check_fields (Env , TypedRecFields , [{record_field , _ , {var , _ , '_' }, Expr } | _Fields ]
1732
1732
,UnAssignedFields ) ->
1733
1733
{VB1 , Cs1 } = type_check_fields (Env , TypedRecFields
1734
1734
,[ {record_field , erl_anno :new (0 )
@@ -2214,7 +2214,7 @@ do_type_check_expr_in(Env, ResTy, {record, Anno, Exp, Name, Fields} = Record) ->
2214
2214
end
2215
2215
,Fields )
2216
2216
),
2217
- RecordTy = type_record (Name , [type_field_type (Name , Type ) || ? typed_record_field (Name , Type ) <- Rec ]),
2217
+ RecordTy = type_record (Name , [type_field_type (FieldName , Type ) || ? typed_record_field (FieldName , Type ) <- Rec ]),
2218
2218
{VarBinds , Cs2 } = type_check_expr_in (Env , RecordTy , Exp ),
2219
2219
{union_var_binds ([VarBinds |VarBindsList ], Env # env .tenv )
2220
2220
,constraints :combine ([Cs1 , Cs2 |Css ])};
@@ -3332,7 +3332,7 @@ refine(OrigTy, Ty, TEnv) ->
3332
3332
3333
3333
get_record_fields_types (Name , Anno , TEnv ) ->
3334
3334
RecordFields = get_maybe_remote_record_fields (Name , Anno , TEnv ),
3335
- [type_field_type (Name , Type ) || ? typed_record_field (Name , Type ) <- RecordFields ].
3335
+ [type_field_type (FieldName , Type ) || ? typed_record_field (FieldName , Type ) <- RecordFields ].
3336
3336
3337
3337
expand_record (Name , Anno , TEnv ) ->
3338
3338
type_record (Name , get_record_fields_types (Name , Anno , TEnv )).
0 commit comments