Avatar
Avatar
nanasi
@swift-5.7.3 @MainActor class Foo {     @discardableResult     func bar() -> Int { 1 } } Task {     await Foo().bar()     return } (edited)
stderr:<stdin>:3:1: warning: non-breaking space (U+00A0) used instead of regular space     @discardableResult <stdin>:3:4: warning: non-breaking space (U+00A0) used instead of regular space     @discardableResult <stdin>:4:1: warning: non-breaking space (U+00A0) used instead of regular space     func bar() -> Int { 1 } <stdin>:4:4: warning: non-breaking space (U+00A0) used instead of regular space     func bar() -> Int { 1 } <stdin>:8:1: warning: non-breaking space (U+00A0) used instead of regular space     await Foo().bar() <stdin>:8:4: warning: non-breaking space (U+00A0) used instead of regular space     await Foo().bar() <stdin>:9:1: warning: non-breaking space (U+00A0) used instead of regular space     return <stdin>:9:4: warning: non-breaking space (U+00A0) used instead of regular space     return <stdin>:8:19: warning: result of call to function returning 'Int' is unused     await Foo().bar() (edited)