File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed
Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -35,12 +35,19 @@ export class LFSR {
3535
3636export const libraryClasses = `
3737class Object {
38- public static native void display(int s);
39-
4038 public native int hashCode();
4139
4240 public native String toString();
43- }`
41+ }
42+
43+ class PrintStream {
44+ public static native void println(String s);
45+ }
46+
47+ class System {
48+ public static PrintStream out = new PrintStream();
49+ }
50+ `
4451
4552// const disabled = `class PrintStream extends Object {
4653// public native void println(String s);
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ export const foreigns: {
4444 stash . push ( stashItem )
4545 } ,
4646
47- 'Object::display(int s): void' : ( { environment, interfaces } ) => {
47+ 'PrintStream::println(String s): void' : ( { environment, interfaces } ) => {
4848 // @ts -expect-error ts(2339): guaranteed valid by type checker
4949 const s = environment . getVariable ( 's' ) . value . literalType . value
5050
You can’t perform that action at this time.
0 commit comments