mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
23 lines
470 B
Swift
23 lines
470 B
Swift
// RUN: %target-swift-frontend -emit-sil -verify %s > /dev/null
|
|
|
|
|
|
|
|
// Applying a computed property to a move-only field in a class should occur
|
|
// entirely within a formal access to the class property. rdar://105794506
|
|
|
|
struct FileDescriptor: ~Copyable {
|
|
private let desc: Int
|
|
|
|
var empty: Bool { return desc == Int.min }
|
|
}
|
|
|
|
final class Wrapper {
|
|
private var val: FileDescriptor
|
|
|
|
func isEmpty_bug() -> Bool {
|
|
return val.empty
|
|
}
|
|
|
|
init() { fatalError() }
|
|
}
|