mirror of
https://github.com/apple/swift.git
synced 2026-10-10 13:50:43 +02:00
12 lines
541 B
Swift
12 lines
541 B
Swift
// RUN: %target-swift-frontend -O -sil-verify-all -verify -emit-sil -enable-library-evolution %s
|
|
|
|
// rdar://173376043 (Improve diagnostics for Compiler crash: ~Copyable protocol extension with public settable property + library evolution)
|
|
public protocol NonCopyableWithVar: ~Copyable {}
|
|
extension NonCopyableWithVar where Self: ~Copyable {
|
|
public var value: Int32 {
|
|
get { 0 } // expected-error{{copy of noncopyable typed value. This is a compiler bug. Please file a bug with a small example of the bug}}
|
|
set {}
|
|
}
|
|
}
|
|
|