Minor: add test for KT-11993 "NoSuchMethodError when testing internal symbols"

This commit is contained in:
Zalim Bashorov
2016-05-04 22:41:07 +03:00
parent 6cafa51b07
commit c11d504a26
6 changed files with 120 additions and 1 deletions
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/test" isTestSource="true" />
</content>
<orderEntry type="jdk" jdkName="IDEA_JDK" jdkType="JavaSDK" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="module" module-name="module1" />
<orderEntry type="library" name="KotlinRuntime" level="project" />
</component>
<component name="TestModuleProperties" production-module="module1" />
</module>
@@ -0,0 +1,26 @@
// TODO uncomment annotations when KT-12199 will be fixed
//@file:InternalFileAnnotation1
package test2
import test1.*
internal class FromInternalClass1: InternalClass1()
//@InternalClassAnnotation
class FromClassA1 : ClassA1(10)
class FromClassB1 : ClassB1() {
internal override val member = 10
}
fun box() {
internalProp
internalFun()
InternalClass1()
FromClassA1().member
FromClassB1().member
FromClassB1().func()
}