Add TextWriter, IOException, per-VM module data and pre-load imports; Add console module with Console class
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
import 'console';
|
||||
final class Test {
|
||||
private int $value;
|
||||
|
||||
private void __construct() {
|
||||
print('Constructor called.' + "\n");
|
||||
Console::Print('Constructor called.' + "\n");
|
||||
}
|
||||
|
||||
private void __destruct() {
|
||||
print('Destructor called.' + "\n");
|
||||
Console::Print('Destructor called.' + "\n");
|
||||
}
|
||||
|
||||
/* This is singleton */
|
||||
|
||||
Reference in New Issue
Block a user