diff options
| author | Michael Williamson <mike@zwobble.org> | 2024-01-14 10:48:53 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2024-01-14 10:48:53 +0000 |
| commit | c8b1f9139439ca6096e82f4b98a9baccba5807fe (patch) | |
| tree | ca9435281473e7d3c9a1692f6085e7158c18cee9 /examples | |
| parent | 6920b525a9a7e37f0e5436612d1fc7517b8212d0 (diff) | |
Support inferring type args in when cases
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/31-generic-structs-and-sums-inferred-type-args/src/HelloWorld.shed | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/31-generic-structs-and-sums-inferred-type-args/src/HelloWorld.shed b/examples/31-generic-structs-and-sums-inferred-type-args/src/HelloWorld.shed index c1c32f21..5a58f8e4 100644 --- a/examples/31-generic-structs-and-sums-inferred-type-args/src/HelloWorld.shed +++ b/examples/31-generic-structs-and-sums-inferred-type-args/src/HelloWorld.shed @@ -11,7 +11,7 @@ pub fun main() ! Io -> Unit { fun printOption(option: Option[String]) !Io -> Unit { when (option) { - is Some[String] { + is Some { print!("Some("); print!(option.value); print!(")\n"); |
