From c8b1f9139439ca6096e82f4b98a9baccba5807fe Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sun, 14 Jan 2024 10:48:53 +0000 Subject: Support inferring type args in when cases --- .../31-generic-structs-and-sums-inferred-type-args/src/HelloWorld.shed | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples') 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"); -- cgit v1.2.3