mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
12 lines
305 B
Swift
12 lines
305 B
Swift
// rdar://82252704
|
|
// https://github.com/apple/swift/issues/57396
|
|
// Declaring a class inside a 'async throws' function crashes compiler
|
|
|
|
// RUN: %empty-directory(%t)
|
|
// RUN: %target-swift-frontend -c %s -o %t/test.o
|
|
|
|
@available(SwiftStdlib 5.1, *)
|
|
func MyFunction() async throws {
|
|
class MyClass {}
|
|
}
|