Check OOB stays the same for string in super type constructor call

This commit is contained in:
Nikolay Krasko
2017-07-17 22:11:00 +03:00
parent 41276c950b
commit bcbff98382
2 changed files with 18 additions and 0 deletions
@@ -0,0 +1,12 @@
// FALSE
abstract class S(val f: () -> Unit)
fun foo(s: String, f: () -> Unit) {}
class ST : S(
{
foo("a <caret>test calculator") {
}
})
@@ -257,4 +257,10 @@ public class OutOfBlockModificationTestGenerated extends AbstractOutOfBlockModif
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/codeInsight/outOfBlock/PropertyWithType_Initializer_String.kt");
doTest(fileName);
}
@TestMetadata("StringInSuperConstroctorCall.kt")
public void testStringInSuperConstroctorCall() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/codeInsight/outOfBlock/StringInSuperConstroctorCall.kt");
doTest(fileName);
}
}