diff options
| author | Michael Williamson <mike@zwobble.org> | 2024-12-19 16:30:17 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2024-12-19 16:30:17 +0000 |
| commit | 4f8135071ae6faf7abfbc2f4765101ce9c0bb287 (patch) | |
| tree | 466ce9540538e5f3a193b0b82fde30796651de0f /examples | |
| parent | cbe45599f7b46d7a0674a62d424b9485e7735d45 (diff) | |
Define methods directly on struct
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/35-struct-methods/shed.toml (renamed from examples/35-extend-struct-inline/shed.toml) | 0 | ||||
| -rw-r--r-- | examples/35-struct-methods/src/HelloWorld.shed (renamed from examples/35-extend-struct-inline/src/HelloWorld.shed) | 3 |
2 files changed, 0 insertions, 3 deletions
diff --git a/examples/35-extend-struct-inline/shed.toml b/examples/35-struct-methods/shed.toml index bf5c13c4..bf5c13c4 100644 --- a/examples/35-extend-struct-inline/shed.toml +++ b/examples/35-struct-methods/shed.toml diff --git a/examples/35-extend-struct-inline/src/HelloWorld.shed b/examples/35-struct-methods/src/HelloWorld.shed index bcdcf023..2e0ad2bc 100644 --- a/examples/35-extend-struct-inline/src/HelloWorld.shed +++ b/examples/35-struct-methods/src/HelloWorld.shed @@ -5,9 +5,6 @@ pub fun main() ! Io -> Unit { } struct Count(.value: Int) { -} - -extend Count { fun message(this) -> String { if (this.value == 1) { "one\n" |
