Create actual: use analyzeWithContent to resolve annotations correctly

So #KT-26626 Fixed
This commit is contained in:
Mikhail Glukhikh
2018-09-06 16:17:48 +03:00
parent 26469b3365
commit 29390dab42
5 changed files with 32 additions and 2 deletions
@@ -0,0 +1,11 @@
// "Create actual annotation class for module testModule_JVM (JVM)" "true"
// TOOL: org.jetbrains.kotlin.idea.inspections.OptionalExpectationInspection
package kotlin
annotation class ExperimentalMultiplatform
annotation class OptionalExpectation
@ExperimentalMultiplatform
@OptionalExpectation
expect annotation class <caret>Ann
@@ -0,0 +1,11 @@
// "Create actual annotation class for module testModule_JVM (JVM)" "true"
// TOOL: org.jetbrains.kotlin.idea.inspections.OptionalExpectationInspection
package kotlin
annotation class ExperimentalMultiplatform
annotation class OptionalExpectation
@ExperimentalMultiplatform
@OptionalExpectation
expect annotation class <caret>Ann
@@ -0,0 +1,3 @@
package kotlin
actual annotation class Ann