Add TextWriter, IOException, per-VM module data and pre-load imports; Add console module with Console class
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
import 'console';
|
||||
class Test {
|
||||
public void __construct(string $a) {
|
||||
print("$a\n");
|
||||
Console::Print("$a\n");
|
||||
}
|
||||
|
||||
public void __construct(int $a, int $b) {
|
||||
print("$a + $b = ", $a + $b, "\n");
|
||||
Console::Print("$a + $b = " + ($a + $b) + "\n");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user