test for bytecode generation of kotlin code against descriptors loaded from binary classes

test is:
1. compile file A
2. compile file B with binary class A in classpath
3. execute some code from file B
This commit is contained in:
Stepan Koltsov
2012-01-19 20:16:09 +04:00
parent 8125a1003e
commit b360d2ada3
3 changed files with 140 additions and 0 deletions
@@ -0,0 +1,3 @@
package aaa
fun hello() = 17
@@ -0,0 +1,9 @@
package bbb
fun main(args: Array<String>) {
val h = aaa.hello()
if (h != 17) {
throw Exception()
}
System.out?.println("It is 17!")
}