aboutsummaryrefslogtreecommitdiff
path: root/examples/16-struct-positional-fields/src
diff options
context:
space:
mode:
Diffstat (limited to 'examples/16-struct-positional-fields/src')
-rw-r--r--examples/16-struct-positional-fields/src/HelloWorld.shed17
1 files changed, 0 insertions, 17 deletions
diff --git a/examples/16-struct-positional-fields/src/HelloWorld.shed b/examples/16-struct-positional-fields/src/HelloWorld.shed
deleted file mode 100644
index 8880c7e2..00000000
--- a/examples/16-struct-positional-fields/src/HelloWorld.shed
+++ /dev/null
@@ -1,17 +0,0 @@
-pub fun main() ! Io -> Unit {
- val messageParts = getMessageParts();
- print!(messageParts.part1);
- print!(messageParts.part2);
-}
-
-// We put part2 before part1 so that the order of args differs from the lexical
-// field order.
-struct MessageParts(
- part2: String,
- part1: String,
-) {
-}
-
-fun getMessageParts() -> MessageParts {
- MessageParts("world\n", "hello, ")
-}