add test for obsolete KT-11601

This commit is contained in:
Dmitry Jemerov
2016-08-26 12:02:04 +02:00
parent 4f1f313b36
commit e8fcd194f9
3 changed files with 16 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
fun x(){
val challenges = mutableListOf<() -> Unit>()
for (c in challenges) {
<caret>c()
}
}
// TYPE: c -> <html>() &rarr; Unit</html>
// TYPE: c() -> <html>Unit</html>
@@ -18,6 +18,7 @@ package org.jetbrains.kotlin.idea.codeInsight
import com.intellij.testFramework.UsefulTestCase
import org.jetbrains.kotlin.idea.test.KotlinLightCodeInsightFixtureTestCase
import org.jetbrains.kotlin.idea.test.KotlinWithJdkAndRuntimeLightProjectDescriptor
import org.jetbrains.kotlin.idea.test.PluginTestCaseBase
import org.jetbrains.kotlin.test.InTextDirectivesUtils
@@ -47,6 +47,12 @@ public class ExpressionTypeTestGenerated extends AbstractExpressionTypeTest {
doTest(fileName);
}
@TestMetadata("Kt11601.kt")
public void testKt11601() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/codeInsight/expressionType/Kt11601.kt");
doTest(fileName);
}
@TestMetadata("MultiDeclaration.kt")
public void testMultiDeclaration() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/codeInsight/expressionType/MultiDeclaration.kt");