Write version requirement on inline classes and relevant declarations

#KT-26720 Fixed
This commit is contained in:
Mikhail Zarechenskiy
2018-09-11 11:34:17 +03:00
parent 1eda3805ec
commit 908be10bf4
3 changed files with 99 additions and 14 deletions
@@ -171,4 +171,21 @@ abstract class AbstractVersionRequirementTest : TestCaseWithTmpdir() {
)
)
}
fun testInlineClassesAndRelevantDeclarations() {
doTest(
VersionRequirement.Version(1, 3), DeprecationLevel.ERROR, null, ProtoBuf.VersionRequirement.VersionKind.LANGUAGE_VERSION, null,
customLanguageVersion = LanguageVersion.KOTLIN_1_2,
fqNames = listOf(
"test.IC",
"test.Ctor.<init>",
"test.simpleFun",
"test.aliasedFun",
"test.simpleProp",
"test.result",
"test.Foo",
"test.Bar"
)
)
}
}