Use property access: suppress for reserved words #KT-23775 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
240b9fd97a
commit
4ee9db7a6c
@@ -0,0 +1,11 @@
|
||||
public class Foo {
|
||||
private String object;
|
||||
|
||||
public String getObject() {
|
||||
return object;
|
||||
}
|
||||
|
||||
public void setObject(String object) {
|
||||
this.object = object;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
// IS_APPLICABLE: false
|
||||
|
||||
fun test() {
|
||||
Foo().<caret>getObject()
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
public class Foo {
|
||||
private String typeof;
|
||||
|
||||
public String getTypeof() {
|
||||
return typeof;
|
||||
}
|
||||
|
||||
public void setTypeof(String typeof) {
|
||||
this.typeof = typeof;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
// IS_APPLICABLE: false
|
||||
|
||||
fun test() {
|
||||
Foo().<caret>getTypeof()
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
public class Foo {
|
||||
private String object;
|
||||
|
||||
public String getObject() {
|
||||
return object;
|
||||
}
|
||||
|
||||
public void setObject(String object) {
|
||||
this.object = object;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
// IS_APPLICABLE: false
|
||||
|
||||
fun test() {
|
||||
Foo().<caret>setObject("")
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
public class Foo {
|
||||
private String typeof;
|
||||
|
||||
public String getTypeof() {
|
||||
return typeof;
|
||||
}
|
||||
|
||||
public void setTypeof(String typeof) {
|
||||
this.typeof = typeof;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
// IS_APPLICABLE: false
|
||||
|
||||
fun test() {
|
||||
Foo().<caret>setTypeof("")
|
||||
}
|
||||
Reference in New Issue
Block a user