File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed
test/ModuleInterface/Inputs Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -205,7 +205,8 @@ bool TypeBase::isNoncopyable(const DeclContext *dc) {
205205
206206// / \returns true iff this type lacks conformance to Copyable.
207207bool TypeBase::isNoncopyable () {
208- auto canType = getCanonicalType ();
208+ // Strip @lvalue and canonicalize.
209+ auto canType = getRValueType ()->getCanonicalType ();
209210 auto &ctx = canType->getASTContext ();
210211
211212 // for legacy-mode queries that are not dependent on conformances to Copyable
Original file line number Diff line number Diff line change @@ -8,3 +8,16 @@ public struct Vector<T: ~Copyable> {
88 fatalError ( " todo " )
99 }
1010}
11+
12+
13+
14+
15+ // These are purely to add test coverage of different constructs
16+ public struct Toys {
17+ static func test_parallelAssignment( ) {
18+ var y : Int
19+ var x : Int
20+ ( x, y) = ( 10 , 11 )
21+ }
22+
23+ }
You can’t perform that action at this time.
0 commit comments