Files
swift-mirror/test/ModuleInterface/iboutlet-private-set.swift
Harlan Haskins d3b8ce7ae2 [test] Update ParseableInterface to ModuleInterface
Also remove uses of -emit-parseable-module-interface from tests
2019-09-13 14:55:48 -07:00

19 lines
713 B
Swift

// REQUIRES: objc_interop
// RUN: %empty-directory(%t)
// RUN: %target-swift-frontend -typecheck -enable-library-evolution -disable-objc-attr-requires-foundation-module -module-name Foo -emit-module-interface-path %t/Foo.swiftinterface %s
// RUN: %FileCheck %s -input-file %t/Foo.swiftinterface
// RUN: %target-swift-frontend -compile-module-from-interface %t/Foo.swiftinterface -o %t/Foo.swiftmodule -module-name Foo
// Test the interface we generate for @IBOutlet private(set) properties is
// consumable.
@objc public class MyType {}
open class Bar {
// CHECK: @objc @IBOutlet weak public var foo: Foo.MyType! {
// CHECK-NEXT: get
// CHECK-NEXT: }
@IBOutlet public private(set) weak var foo: MyType!
}