This commit is contained in:
parent
1aecc81874
commit
01835c520a
5
TestSuite/double_question4.pas
Normal file
5
TestSuite/double_question4.pas
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
function f := default(string);
|
||||
begin
|
||||
var s := (f??'').PadRight(3);
|
||||
assert(s = ' ');
|
||||
end.
|
||||
|
|
@ -18583,7 +18583,7 @@ namespace PascalABCCompiler.TreeConverter
|
|||
|
||||
|
||||
//right = convertion_data_and_alghoritms.convert_type(right, left.type);
|
||||
return_value(new double_question_colon_expression(condition, right, get_location(node)));
|
||||
return_value(new double_question_colon_expression(left, right, get_location(node)));
|
||||
}
|
||||
|
||||
public override void visit(SyntaxTree.question_colon_expression node)
|
||||
|
|
|
|||
Loading…
Reference in a new issue