Skip explicit API inspection for data class properties and add inspection for public API in interfaces
Add tests for almost all the cases
This commit is contained in:
+23
@@ -0,0 +1,23 @@
|
||||
/*
|
||||
* Copyright 2010-2019 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.checkers
|
||||
|
||||
import org.jetbrains.kotlin.config.*
|
||||
import org.jetbrains.kotlin.test.ConfigurationKind
|
||||
|
||||
abstract class AbstractDiagnosticsWithExplicitApi : AbstractDiagnosticsTest() {
|
||||
override fun getConfigurationKind(): ConfigurationKind {
|
||||
return ConfigurationKind.NO_KOTLIN_REFLECT
|
||||
}
|
||||
|
||||
override fun defaultLanguageVersionSettings(): LanguageVersionSettings =
|
||||
CompilerTestLanguageVersionSettings(
|
||||
DEFAULT_DIAGNOSTIC_TESTS_FEATURES,
|
||||
ApiVersion.KOTLIN_1_3,
|
||||
LanguageVersion.KOTLIN_1_3,
|
||||
mapOf(AnalysisFlags.explicitApiMode to ExplicitApiMode.STRICT)
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user