mirror of
https://github.com/JonathanFleischmann/CompilerULTIMATE.git
synced 2024-12-27 08:38:03 +00:00
Updated the ClasCanBeTyped
This commit is contained in:
parent
31d57c8ba9
commit
17c806c592
@ -1,8 +1,20 @@
|
||||
public class ClassCanBeTyped {
|
||||
|
||||
int x;
|
||||
int y;
|
||||
char z;
|
||||
|
||||
boolean a;
|
||||
ClassCanBeTyped b;
|
||||
public ClassCanBeTyped(int x) {
|
||||
this.x = x;
|
||||
}
|
||||
public ClassCanBeTyped(int x, int y) {
|
||||
this.x = x;
|
||||
this.y = y;
|
||||
}
|
||||
public ClassCanBeTyped init(int x, int y) {
|
||||
return new ClassCanBeTyped(x, y);
|
||||
}
|
||||
public ClassCanBeTyped() {
|
||||
this.x = 10;
|
||||
int i;
|
||||
@ -33,7 +45,7 @@ public class ClassCanBeTyped {
|
||||
}
|
||||
|
||||
public int getX(char z) {
|
||||
return x;
|
||||
return this.x;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user