Smart completion: added a test

This commit is contained in:
Valentin Kipyatkov
2014-05-12 20:55:00 +04:00
parent 2d850f41f1
commit c9bde2de0e
2 changed files with 17 additions and 0 deletions
@@ -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");
}
@TestMetadata("IfValue4.kt")
public void testIfValue4() throws Exception {
doTest("idea/testData/completion/smart/IfValue4.kt");
}
@TestMetadata("IfValueInBlock1.kt")
public void testIfValueInBlock1() throws Exception {
doTest("idea/testData/completion/smart/IfValueInBlock1.kt");