This commit is contained in:
Mikhalkovich Stanislav 2022-09-10 19:16:37 +03:00
parent 3a3cc8a80d
commit ee69f424e8
2 changed files with 5 additions and 1 deletions

View file

@ -0,0 +1,4 @@
begin
var x := true ? byte(3) : byte(2);
Assert(x=3);
end.

View file

@ -18669,7 +18669,7 @@ namespace PascalABCCompiler.TreeConverter
else else
{ {
right = convertion_data_and_alghoritms.convert_type(right, lub); right = convertion_data_and_alghoritms.convert_type(right, lub);
left = convertion_data_and_alghoritms.convert_type(right, lub); left = convertion_data_and_alghoritms.convert_type(left, lub);
} }
} }
else if (left.type == SystemLibrary.SystemLibrary.float_type && right.type == SystemLibrary.SystemLibrary.double_type) else if (left.type == SystemLibrary.SystemLibrary.float_type && right.type == SystemLibrary.SystemLibrary.double_type)