diff options
| author | Michael Williamson <mike@zwobble.org> | 2024-12-10 23:22:20 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2024-12-10 23:22:56 +0000 |
| commit | e0bbcd3fb41b54f8d72bf2d08a592def2e44d3b7 (patch) | |
| tree | 793329284914e5bdd1aeae1d59379f418e62307e /examples/16-struct-positional-fields/src/HelloWorld.shed | |
| parent | a3d55321537a29401fe487e040e3b6ebbd04fc3e (diff) | |
Add disabled example for struct positional fields
Diffstat (limited to 'examples/16-struct-positional-fields/src/HelloWorld.shed')
| -rw-r--r-- | examples/16-struct-positional-fields/src/HelloWorld.shed | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/examples/16-struct-positional-fields/src/HelloWorld.shed b/examples/16-struct-positional-fields/src/HelloWorld.shed new file mode 100644 index 00000000..ad6fe426 --- /dev/null +++ b/examples/16-struct-positional-fields/src/HelloWorld.shed @@ -0,0 +1,15 @@ +pub fun main() ! Io -> Unit { + val messageParts = getMessageParts(); + print!(messageParts.part1); + print!(messageParts.part2); +} + +struct MessageParts( + part1: String, + part2: String, +) { +} + +fun getMessageParts() -> MessageParts { + MessageParts("hello, ", "world\n") +} |
