Add import support to main-kts, with test
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
|
||||
var sharedVar = 2
|
||||
|
||||
println("Hi from common")
|
||||
@@ -0,0 +1,6 @@
|
||||
|
||||
@file:Import("import-common.main.kts")
|
||||
|
||||
sharedVar *= 2
|
||||
|
||||
println("Hi from middle")
|
||||
@@ -0,0 +1,7 @@
|
||||
|
||||
@file:Import("import-common.main.kts")
|
||||
@file:Import("import-middle.main.kts")
|
||||
|
||||
sharedVar = sharedVar + 1
|
||||
|
||||
println("sharedVar == $sharedVar")
|
||||
Reference in New Issue
Block a user