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:
@@ -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!")
|
||||
}
|
||||
Reference in New Issue
Block a user