Sajjon
(Alexander Cyon)
1
@MainActor
@discardableResult
func foo() -> String { "bar!" }
When used I have to write
_ = foo()
To not get Result of call to function returning 'String' is unused warning.
So I try change order of annotation to:
@discardableResult
@MainActor
func foo() -> String { "bar!" }
Same result. Feels like a bug? Ought to be possible right?
mayoff
(Rob Mayoff)
2
This has been fixed but the fix didn't make it into Xcode 14.0.
1 Like