Files
swift-mirror/test/Demangle/rdar-82252704.swift
2022-08-26 15:04:39 +03:00

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 {}
}