CompilerBuiltinsOverriding3.valid.mj 514 Bytes
Newer Older
ucifm's avatar
ucifm committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/* OK */

class System {

}

class Main {
	public Main in;
	public Main out;

	public int read(int x) {
		return x;
	}

	public int println(int x) {
		return x;
	}

	public int write(int x) {
		return x;
	}

	public void flush(int x) {

	}

	public void foo(Main System) {
		int x = System.in.read(0);
		x = System.out.println(x);
		x = System.out.write(x);
		System.out.flush(x);
	}

	public static void main(String[] args) {
		Main System = new Main();
		System.in = new Main();
		System.in.foo(System.in);
	}
}