Infer API version from older runtime in compiler's classpath
For example, if you invoke kotlinc 1.1 with kotlin-stdlib 1.0 in the classpath, we now infer -api-version 1.0 automatically
This commit is contained in:
@@ -36,7 +36,6 @@ import org.jetbrains.kotlin.psi.KtDeclaration
|
||||
import org.jetbrains.kotlin.psi.KtFile
|
||||
import org.jetbrains.kotlin.resolve.BindingContext
|
||||
import org.jetbrains.kotlin.resolve.MultiTargetPlatform
|
||||
import org.jetbrains.kotlin.test.InTextDirectivesUtils
|
||||
import org.jetbrains.kotlin.test.KotlinTestUtils
|
||||
import org.jetbrains.kotlin.utils.addIfNotNull
|
||||
import org.junit.Assert
|
||||
@@ -108,6 +107,12 @@ abstract class BaseDiagnosticsTest : KotlinMultiFileTestWithJava<TestModule, Tes
|
||||
|
||||
override fun supportsFeature(feature: LanguageFeature): Boolean =
|
||||
languageFeatures[feature] ?: delegate.supportsFeature(feature)
|
||||
|
||||
override val additionalFeatures: Collection<LanguageFeature>
|
||||
get() = error("Must not be called")
|
||||
|
||||
override val isApiVersionExplicit: Boolean
|
||||
get() = error("Must not be called")
|
||||
}
|
||||
|
||||
inner class TestFile(
|
||||
|
||||
Reference in New Issue
Block a user