Skip to content

Commit d3bcb13

Browse files
author
Holger Brandl
committed
Clarified intent of kotlinc_example.kts (fixes #117)
1 parent 806ab47 commit d3bcb13

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

examples/kotlinc_example.kts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
#!/usr/bin/env kotlinc -script
22

3+
// This is NOT a kscript example but demonstrates how kotlin scripting would work without kscript.
4+
// In the shebang line we point to kotlinc in scripting mode. Note, that this will just work in some flavors of bash.
5+
6+
// If `args` are showing up as red in Intellij, you've stumbled over an intellij bug.
7+
// See https://youtrack.jetbrains.com/issue/KT-15019
8+
39
println("Hello from Kotlin!")
410
for (arg in args) {
511
println("arg: $arg")

0 commit comments

Comments
 (0)