Add tests for KT-12199 to prevent regression

#KT-12199 Obsolete

Original commit: 712b2c8117
This commit is contained in:
Zalim Bashorov
2017-04-10 20:00:45 +03:00
parent 4009a45bcd
commit 6bedbfb67f
4 changed files with 51 additions and 7 deletions
@@ -1,6 +1,4 @@
// TODO uncomment annotations when KT-12199 will be fixed
//@file:InternalFileAnnotation1
@file:InternalFileAnnotation1
package test2
@@ -8,13 +6,22 @@ import test1.*
internal class FromInternalClass1: InternalClass1()
//@InternalClassAnnotation
class FromClassA1 : ClassA1(10)
@InternalClassAnnotation1
class FromClassA1 : ClassA1(10) {
@InternalClassAnnotation1
class Nested {
@InternalFunctionAnnotation1
fun foo() {}
}
}
class FromClassB1 : ClassB1() {
internal override val member = 10
}
@InternalFunctionAnnotation1
fun foo() {}
fun box() {
internalProp
internalFun()