diff options
Diffstat (limited to 'examples/15-struct-hoisting/src/HelloWorld.shed')
| -rw-r--r-- | examples/15-struct-hoisting/src/HelloWorld.shed | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/examples/15-struct-hoisting/src/HelloWorld.shed b/examples/15-struct-hoisting/src/HelloWorld.shed new file mode 100644 index 00000000..d9caa802 --- /dev/null +++ b/examples/15-struct-hoisting/src/HelloWorld.shed @@ -0,0 +1,12 @@ +val messageParts = MessageParts(.part1 = "hello, ", .part2 = "world\n"); + +fun main() ! Io -> Unit { + print!(messageParts.part1); + print!(messageParts.part2); +} + +struct MessageParts( + .part1: String, + .part2: String, +) { +} |
