@@ -1926,7 +1926,7 @@ fn resolvePlaceholderWithRelation(
19261926 child : * obj.ObjTypeDef ,
19271927 resolved_type : * obj.ObjTypeDef ,
19281928 final : bool ,
1929- relation : obj.PlaceholderDef.PlaceholderRelation ,
1929+ relation : obj.PlaceholderDef.Relation ,
19301930) Error ! void {
19311931 const child_placeholder = child .resolved_type .? .Placeholder ;
19321932 const child_placeholder_name = self .ast .tokens .items (.lexeme )[child_placeholder .where ];
@@ -4205,7 +4205,7 @@ fn literal(self: *Self, _: bool) Error!Ast.Node.Index {
42054205 node .components = .{
42064206 .Double = self .ast .tokens .items (.literal )[node .location ].Double ,
42074207 };
4208- node .type_def = self .gc .type_registry .float_type ;
4208+ node .type_def = self .gc .type_registry .double_type ;
42094209 },
42104210 else = > unreachable ,
42114211 }
@@ -7082,7 +7082,12 @@ fn binary(self: *Self, _: bool, left: Ast.Node.Index) Error!Ast.Node.Index {
70827082 .EqualEqual ,
70837083 = > self .gc .type_registry .bool_type ,
70847084
7085- .Plus = > left_type_def orelse right_type_def ,
7085+ .Minus ,
7086+ .Star ,
7087+ .Percent ,
7088+ .Slash ,
7089+ .Plus ,
7090+ = > left_type_def orelse right_type_def ,
70867091
70877092 .ShiftLeft ,
70887093 .ShiftRight ,
@@ -7091,15 +7096,6 @@ fn binary(self: *Self, _: bool, left: Ast.Node.Index) Error!Ast.Node.Index {
70917096 .Xor ,
70927097 = > self .gc .type_registry .int_type ,
70937098
7094- .Minus ,
7095- .Star ,
7096- .Percent ,
7097- .Slash ,
7098- = > if ((left_type_def != null and left_type_def .? .def_type == .Double ) or (right_type_def != null and right_type_def .? .def_type == .Double ))
7099- self .gc .type_registry .float_type
7100- else
7101- self .gc .type_registry .int_type ,
7102-
71037099 else = > unreachable ,
71047100 },
71057101 .components = .{
0 commit comments