fix #2703
This commit is contained in:
parent
3a3cc8a80d
commit
ee69f424e8
4
TestSuite/ternary_byte_value.pas
Normal file
4
TestSuite/ternary_byte_value.pas
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
begin
|
||||||
|
var x := true ? byte(3) : byte(2);
|
||||||
|
Assert(x=3);
|
||||||
|
end.
|
||||||
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue