Implement simple "add to compilation" functionality for scripts

(incomplete import - scripts added to the compilation but not yet
imported into scope)
Base functionality needed for #KT-27960
This commit is contained in:
Ilya Chernikov
2018-11-16 16:13:50 +01:00
parent 57c12476d7
commit 729ebcac9b
13 changed files with 298 additions and 84 deletions
+2
View File
@@ -0,0 +1,2 @@
print("Hello from basic script!")
+4
View File
@@ -0,0 +1,4 @@
@file:Import("hello_req.kt")
print("Hello from ${RequiredFromHello().name}!")
+2
View File
@@ -0,0 +1,2 @@
print("Hello, ${args[0]}!")
+5
View File
@@ -0,0 +1,5 @@
class RequiredFromHello {
val name = "required"
}