forked from jiahao42/MeggyJava-Compiler
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTest.java
More file actions
41 lines (37 loc) · 609 Bytes
/
Copy pathTest.java
File metadata and controls
41 lines (37 loc) · 609 Bytes
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
40
41
/**
*
* @File: Test
* @Brief: Test for dot files
* @Created: Dec/09/2018
* @Author: Jiahao Cai
*
*/
import meggy.Meggy;
class Test {
public static void main(String[] args) {
new RandomTest().func(5, true, (byte)0);
}
}
class CustomType {
int local;
}
class RandomTest {
int a;
byte b;
boolean c;
Meggy.Color color;
Meggy.Button button;
public int func(int aa, boolean cc, byte bb) {
a = aa;
b = bb;
c = cc;
this.recursive(a);
return 0;
}
public void recursive(int a) {
a = a - 1;
if (a < 0) {
this.recursive(a);
}
}
}