One more test added

This commit is contained in:
Valentin Kipyatkov
2015-10-20 18:30:37 +03:00
parent a3d9085ddd
commit 311bd5f25d
3 changed files with 24 additions and 0 deletions
@@ -0,0 +1,9 @@
interface C {
operator fun set(p: String, value: Int)
}
class D(val c: C) {
fun foo() {
this.c<caret>[""] = 10
}
}
@@ -0,0 +1,9 @@
interface C {
operator fun set(p: String, value: Int)
}
class D(val c: C) {
fun foo() {
this.c.set("", 10)
}
}
@@ -5859,6 +5859,12 @@ public class IntentionTestGenerated extends AbstractIntentionTest {
doTest(fileName);
}
@TestMetadata("assignment.kt")
public void testAssignment() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/intentions/operatorToFunction/assignment.kt");
doTest(fileName);
}
@TestMetadata("binaryEqualsEqualsNullableOperands.kt")
public void testBinaryEqualsEqualsNullableOperands() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/intentions/operatorToFunction/binaryEqualsEqualsNullableOperands.kt");