Avatar
Avatar
ジュニア
@swift-main -enable-upcoming-feature FullTypedThrows enum FooError: Error { case foo } func throwFoo() throws(FooError) { throw .foo }
swiftNightly BOT 12/12/2023 3:35 AM
exit status: 1 with <stdin>:5:23: error: unexpected code '(FooError)' in function func throwFoo() throws(FooError) { ^~~~~~~~~~ <stdin>:1:1: error: new Swift parser generated errors for code that C++ parser accepted enum FooError: Error { ^ <stdin>:5:24: error: typed throws is an experimental feature func throwFoo() throws(FooError) { ^