Fix regular quick-fix test with multi-platforms required

This commit is contained in:
Mikhail Glukhikh
2017-09-19 14:01:31 +03:00
committed by Mikhail Glukhikh
parent ef6a00f477
commit bf739198aa
3 changed files with 11 additions and 3 deletions
@@ -132,12 +132,14 @@ abstract class KotlinLightCodeInsightFixtureTestCase : KotlinLightCodeInsightFix
else if (InTextDirectivesUtils.isDirectiveDefined(fileText, "JS")) {
return KotlinStdJSProjectDescriptor
}
else if (InTextDirectivesUtils.isDirectiveDefined(fileText, "ENABLE_MULTIPLATFORM")) {
return KotlinProjectDescriptorWithFacet.KOTLIN_STABLE_WITH_MULTIPLATFORM
}
}
catch (e: IOException) {
throw rethrow(e)
}
}
return KotlinLightProjectDescriptor.INSTANCE
}
+4 -1
View File
@@ -1,6 +1,9 @@
// "Implement members" "true"
// WITH_RUNTIME
// ENABLE_MULTIPLATFORM
// ERROR: Expected interface 'InterfaceWithFuns' has no actual in module light_idea_test_case for JVM
fun TODO(s: String): Nothing = null!!
expect interface InterfaceWithFuns {
fun funInInterface()
}
+4 -1
View File
@@ -1,6 +1,9 @@
// "Implement members" "true"
// WITH_RUNTIME
// ENABLE_MULTIPLATFORM
// ERROR: Expected interface 'InterfaceWithFuns' has no actual in module light_idea_test_case for JVM
fun TODO(s: String): Nothing = null!!
expect interface InterfaceWithFuns {
fun funInInterface()
}