Test NULL-coalescing operator.
The build was successful. Details

This commit is contained in:
Rafal Kupiec 2019-06-21 23:53:01 +02:00
parent dcf37af75e
commit 8ee2dece06
Signed by: belliash
GPG Key ID: 4E829243E0CFE6B4
2 changed files with 24 additions and 0 deletions

15
tests/null_coalescing.aer Normal file
View File

@ -0,0 +1,15 @@
class Program {
public void main() {
var_dump(0 ?? 0 ?? 6);
var_dump(0 ?? (0 ?? 6));
var_dump((0 ?? 0) ?? 6);
var_dump(0 ?? 5 ?? 6);
var_dump(0 ?? (5 ?? 6));
var_dump((0 ?? 5) ?? 6);
var_dump(4 ?? 5 ?? 6);
var_dump(4 ?? (5 ?? 6));
var_dump((4 ?? 5) ?? 6);
}
}

View File

@ -0,0 +1,9 @@
int(6)
int(6)
int(6)
int(5)
int(5)
int(5)
int(4)
int(4)
int(4)