Smart completion: added a test
This commit is contained in:
@@ -0,0 +1,12 @@
|
|||||||
|
fun foo(s: String){}
|
||||||
|
fun foo(c: Char){}
|
||||||
|
|
||||||
|
val xxx: XXX
|
||||||
|
|
||||||
|
fun bar(b: Boolean, s: String, c: Char){
|
||||||
|
foo(if (b) xxx else <caret>)
|
||||||
|
}
|
||||||
|
|
||||||
|
// EXIST: s
|
||||||
|
// EXIST: c
|
||||||
|
// ABSENT: b
|
||||||
@@ -216,6 +216,11 @@ public class JvmSmartCompletionTestGenerated extends AbstractJvmSmartCompletionT
|
|||||||
doTest("idea/testData/completion/smart/IfValue3.kt");
|
doTest("idea/testData/completion/smart/IfValue3.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("IfValue4.kt")
|
||||||
|
public void testIfValue4() throws Exception {
|
||||||
|
doTest("idea/testData/completion/smart/IfValue4.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("IfValueInBlock1.kt")
|
@TestMetadata("IfValueInBlock1.kt")
|
||||||
public void testIfValueInBlock1() throws Exception {
|
public void testIfValueInBlock1() throws Exception {
|
||||||
doTest("idea/testData/completion/smart/IfValueInBlock1.kt");
|
doTest("idea/testData/completion/smart/IfValueInBlock1.kt");
|
||||||
|
|||||||
Reference in New Issue
Block a user