mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 15:09:39 +07:00
[kotlin] J2K: ConvertGettersAndSettersToPropertyProcessing: clarify test
Now, if the setter in this test is merged into a property, the test will fail with a "type mismatch" error for `takesString` function. GitOrigin-RevId: 1449f3e34994b17f1c6b7235d4f0758213b033d9
This commit is contained in:
committed by
intellij-monorepo-bot
parent
71b7b60880
commit
e9d2d9a86b
@@ -6,6 +6,9 @@ class A {
|
||||
}
|
||||
|
||||
public void setValue(String s) {
|
||||
takesString(s);
|
||||
o = s;
|
||||
}
|
||||
|
||||
private void takesString(String s) {}
|
||||
}
|
||||
@@ -2,7 +2,10 @@ internal class A {
|
||||
var value: Any? = null
|
||||
private set
|
||||
|
||||
fun setValue(s: String?) {
|
||||
fun setValue(s: String) {
|
||||
takesString(s)
|
||||
value = s
|
||||
}
|
||||
|
||||
private fun takesString(s: String) {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user