Add import support to main-kts, with test

This commit is contained in:
Ilya Chernikov
2019-01-07 18:11:43 +01:00
parent 4571e273a4
commit 02f2c941c8
6 changed files with 87 additions and 24 deletions
@@ -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")