mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
test++
This commit is contained in:
+16
@@ -0,0 +1,16 @@
|
||||
class A {
|
||||
int newFieldName;
|
||||
}
|
||||
|
||||
class B extends A {
|
||||
int method(int newFieldName) {
|
||||
if(newFieldName == 0) {
|
||||
return this.newFieldName;
|
||||
}
|
||||
else {
|
||||
int newFieldName = this.newFieldName;
|
||||
return this.newFieldName + newFieldName;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user