Added hacky checks for accessing compiled functions from our module via package part instead of facade.

#KT-4590 fixed
This commit is contained in:
Evgeny Gerashchenko
2014-06-30 21:50:34 +04:00
parent 55a2e8edf8
commit 6501066274
24 changed files with 208 additions and 31 deletions
@@ -0,0 +1,3 @@
package test
fun a() = "a"
@@ -0,0 +1,3 @@
package test
fun b() = "b"
@@ -0,0 +1,3 @@
package test
fun b() = "b"
@@ -0,0 +1,9 @@
Cleaning output files:
out/production/module/test/TestPackage-b-*.class
out/production/module/test/TestPackage-usage-*.class
out/production/module/test/TestPackage.class
End of files
Compiling files:
src/b.kt
src/usage.kt
End of files
@@ -0,0 +1,3 @@
package other
fun other() = "other"
@@ -0,0 +1,5 @@
package test
fun main(args: Array<String>) {
println(a() + b() + other.other())
}
@@ -0,0 +1,5 @@
package test
fun main(args: Array<String>) {
println(a() + b() + other.other())
}
@@ -0,0 +1,3 @@
package test
var a = "a"
@@ -0,0 +1,4 @@
// TODO add var
package test
var b = "b"
@@ -0,0 +1,3 @@
package test
var b = "b"
@@ -0,0 +1,9 @@
Cleaning output files:
out/production/module/test/TestPackage-b-*.class
out/production/module/test/TestPackage-usage-*.class
out/production/module/test/TestPackage.class
End of files
Compiling files:
src/b.kt
src/usage.kt
End of files
@@ -0,0 +1,3 @@
package other
var other = "other"
@@ -0,0 +1,8 @@
package test
fun main(args: Array<String>) {
val x = a + b + other.other
a = "aa"
b = "bb"
other.other = "other.other"
}
@@ -0,0 +1,8 @@
package test
fun main(args: Array<String>) {
val x = a + b + other.other
a = "aa"
b = "bb"
other.other = "other.other"
}