I encountered the following error:
enum Foo { case foo(Bool) }
enum Bar { case bar }
let x: Foo? = nil
func fooey(f: Foo? = nil) {} // Error: Type mismatch, expected "Foo?"
func barey(b: Bar? = nil) {}
I encountered the following error:
enum Foo { case foo(Bool) }
enum Bar { case bar }
let x: Foo? = nil
func fooey(f: Foo? = nil) {} // Error: Type mismatch, expected "Foo?"
func barey(b: Bar? = nil) {}
Thanks, logged as bugs://77022
+1. This is causing me all kinds of logic problems porting from xCode.
i’ll see if we can give this prio fior vNext.
I can’t reproduce this anymore with the release.
bugs://77022 got closed with status fixed.