Fix regular quick-fix test with multi-platforms required
This commit is contained in:
committed by
Mikhail Glukhikh
parent
ef6a00f477
commit
bf739198aa
+3
-1
@@ -132,12 +132,14 @@ abstract class KotlinLightCodeInsightFixtureTestCase : KotlinLightCodeInsightFix
|
|||||||
else if (InTextDirectivesUtils.isDirectiveDefined(fileText, "JS")) {
|
else if (InTextDirectivesUtils.isDirectiveDefined(fileText, "JS")) {
|
||||||
return KotlinStdJSProjectDescriptor
|
return KotlinStdJSProjectDescriptor
|
||||||
}
|
}
|
||||||
|
else if (InTextDirectivesUtils.isDirectiveDefined(fileText, "ENABLE_MULTIPLATFORM")) {
|
||||||
|
return KotlinProjectDescriptorWithFacet.KOTLIN_STABLE_WITH_MULTIPLATFORM
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch (e: IOException) {
|
catch (e: IOException) {
|
||||||
throw rethrow(e)
|
throw rethrow(e)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return KotlinLightProjectDescriptor.INSTANCE
|
return KotlinLightProjectDescriptor.INSTANCE
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+4
-1
@@ -1,6 +1,9 @@
|
|||||||
// "Implement members" "true"
|
// "Implement members" "true"
|
||||||
// WITH_RUNTIME
|
// ENABLE_MULTIPLATFORM
|
||||||
// ERROR: Expected interface 'InterfaceWithFuns' has no actual in module light_idea_test_case for JVM
|
// ERROR: Expected interface 'InterfaceWithFuns' has no actual in module light_idea_test_case for JVM
|
||||||
|
|
||||||
|
fun TODO(s: String): Nothing = null!!
|
||||||
|
|
||||||
expect interface InterfaceWithFuns {
|
expect interface InterfaceWithFuns {
|
||||||
fun funInInterface()
|
fun funInInterface()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
// "Implement members" "true"
|
// "Implement members" "true"
|
||||||
// WITH_RUNTIME
|
// ENABLE_MULTIPLATFORM
|
||||||
// ERROR: Expected interface 'InterfaceWithFuns' has no actual in module light_idea_test_case for JVM
|
// ERROR: Expected interface 'InterfaceWithFuns' has no actual in module light_idea_test_case for JVM
|
||||||
|
|
||||||
|
fun TODO(s: String): Nothing = null!!
|
||||||
|
|
||||||
expect interface InterfaceWithFuns {
|
expect interface InterfaceWithFuns {
|
||||||
fun funInInterface()
|
fun funInInterface()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user