Typehinting merge #50

已合并
belliash 2019-04-17 11:27:52 +02:00 将 298 次代码提交从 typehinting合并至 master
修改 2 个文件,包含 29 行新增0 行删除
仅显示提交 a5da714d61 的更改 - 显示所有提交

23
tests/loop_while_test.aer 普通文件
查看文件

@@ -0,0 +1,23 @@
class Program {
private int test() {
static int $x = 9;
return $x--;
}
public void main() {
int $a;
int $b = 2;
while($a = $this->test()) {
int $b = $a;
if($b == 6) {
continue;
} else if($b == 3) {
break;
}
print("$b\n");
}
print("$b\n");
}
}

6
tests/loop_while_test.exp 普通文件
查看文件

@@ -0,0 +1,6 @@
9
8
7
5
4
2