mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Gardening: Migrate test suite to GH issues: PrintAsObjC
This commit is contained in:
@@ -7,9 +7,10 @@
|
||||
|
||||
import Foundation
|
||||
|
||||
// TODO: Ideally we'd output invalid decls regardless (so that they could eg. be used in code
|
||||
// completion), but we avoid doing so for now to prevent crashes. Revisit later to handle a possibly
|
||||
// invalid AST while printing the ObjectiveC header - see SR-15088.
|
||||
// TODO: Ideally we'd output invalid decls regardless (so that they could eg. be
|
||||
// used in code completion), but we avoid doing so for now to prevent crashes.
|
||||
// Revisit later to handle a possibly invalid AST while printing the ObjectiveC
|
||||
// header - see https://github.com/apple/swift/issues/57414.
|
||||
|
||||
@objc class ErrorClass: NSObject {
|
||||
// CHECK: @interface ErrorClass
|
||||
|
||||
@@ -14,8 +14,8 @@ import ObjectiveC
|
||||
// FIXME: The imported typedefs should be printed directly as the param types,
|
||||
// but one level of sugar is currently lost when applying @noescape. The importer
|
||||
// also loses __attribute__((noescape)) for params of imported function types.
|
||||
// <https://bugs.swift.org/browse/SR-2520>
|
||||
// <https://bugs.swift.org/browse/SR-2529>
|
||||
// https://github.com/apple/swift/issues/45125
|
||||
// https://github.com/apple/swift/issues/45134
|
||||
|
||||
// CHECK-NEXT: - (void)noescapeParam1:(SWIFT_NOESCAPE void (^ _Nonnull)(void))input;
|
||||
// CHECK-NEXT: - (void)noescapeParam2:(SWIFT_NOESCAPE void (^ _Nonnull)(PlainBlock _Nullable))input;
|
||||
|
||||
Reference in New Issue
Block a user