[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:
Alexey Belkov
2023-10-04 16:59:33 +04:00
committed by intellij-monorepo-bot
parent 71b7b60880
commit e9d2d9a86b
2 changed files with 7 additions and 1 deletions

View File

@@ -6,6 +6,9 @@ class A {
}
public void setValue(String s) {
takesString(s);
o = s;
}
private void takesString(String s) {}
}

View File

@@ -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) {}
}