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) {
205
205
206
206
// / \returns true iff this type lacks conformance to Copyable.
207
207
bool TypeBase::isNoncopyable () {
208
- auto canType = getCanonicalType ();
208
+ // Strip @lvalue and canonicalize.
209
+ auto canType = getRValueType ()->getCanonicalType ();
209
210
auto &ctx = canType->getASTContext ();
210
211
211
212
// 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> {
8
8
fatalError ( " todo " )
9
9
}
10
10
}
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