Reimplement import() builtin function as a global-scope statement. This fixes #58.
All checks were successful
The build was successful.

This commit is contained in:
2019-12-14 23:30:38 +01:00
parent 0e757111a3
commit ad5784f81f
7 changed files with 88 additions and 78 deletions

View File

@@ -1,3 +1,5 @@
import 'math';
class Program {
private string num2alpha(int $n) {
@@ -19,7 +21,6 @@ class Program {
}
public void main() {
import('math');
var_dump($this->alpha2num("Salut"), $this->num2alpha(1723), $this->num2alpha(9854), $this->alpha2num("Base64"));
}