mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
18 lines
392 B
Swift
18 lines
392 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: %target-typecheck-verify-swift -swift-version 5 -enable-objc-interop -enable-library-evolution -enable-implicit-dynamic -I %t
|
|
|
|
struct Container {
|
|
var property: Int { return 1 }
|
|
func foo() {}
|
|
}
|
|
|
|
class AClass {
|
|
var property: Int { return 1 }
|
|
func foo() {}
|
|
|
|
@objc dynamic func allowed() {}
|
|
|
|
|
|
@objc dynamic var allowedProperty : Int { return 1}
|
|
}
|