16 lines
257 B
Text
16 lines
257 B
Text
|
import io
|
||
|
|
||
|
fn main () {
|
||
|
s := "this is a string"
|
||
|
io.puts(s)
|
||
|
|
||
|
s := "this is {s}"
|
||
|
io.puts(s)
|
||
|
|
||
|
s + 2 // invalid
|
||
|
|
||
|
// this however, is valid, there is an io.puts that handles int,
|
||
|
// more on function overload in a bit
|
||
|
io.puts(2)
|
||
|
}
|