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:
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
|
||||
print("Hello from basic script!")
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
|
||||
@file:Import("hello_req.kt")
|
||||
|
||||
print("Hello from ${RequiredFromHello().name}!")
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
|
||||
print("Hello, ${args[0]}!")
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
|
||||
class RequiredFromHello {
|
||||
|
||||
val name = "required"
|
||||
}
|
||||
Reference in New Issue
Block a user