Skip to content

Commit a7abb58

Browse files
committed
---
yaml --- r: 286459 b: refs/heads/master-next c: 44c6ad6 h: refs/heads/master i: 286457: d50393f 286455: c3036fb
1 parent 8cdcf29 commit a7abb58

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
refs/heads/master: a67ffadd758dfc7a0f10a8afde063b8864663208
3-
refs/heads/master-next: 6a7c378cbfea0459599763e2920476808a15fff1
3+
refs/heads/master-next: 44c6ad6654052096dca37a1c7f150a8303674ade
44
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
55
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea
66
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-b: 66d897bfcf64a82cb9a87f5e663d889189d06d07

branches/master-next/test/expr/unary/keypath/keypath.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -301,8 +301,8 @@ func testKeyPathSubscript(readonly: Z, writable: inout Z,
301301
sink = readonly[keyPath: rkp]
302302
sink = writable[keyPath: rkp]
303303

304-
readonly[keyPath: kp] = sink // expected-error{{cannot assign through subscript: 'kp' is a read-only key path}}
305-
writable[keyPath: kp] = sink // expected-error{{cannot assign through subscript: 'kp' is a read-only key path}}
304+
readonly[keyPath: kp] = sink // expected-error{{cannot assign through subscript: 'kp' is read-only}}
305+
writable[keyPath: kp] = sink // expected-error{{cannot assign through subscript: 'kp' is read-only}}
306306
readonly[keyPath: wkp] = sink // expected-error{{cannot assign through subscript: 'readonly' is a 'let' constant}}
307307
writable[keyPath: wkp] = sink
308308
readonly[keyPath: rkp] = sink
@@ -401,8 +401,8 @@ func testKeyPathSubscriptMetatype(readonly: Z.Type, writable: inout Z.Type,
401401
sink = readonly[keyPath: rkp]
402402
sink = writable[keyPath: rkp]
403403

404-
readonly[keyPath: kp] = sink // expected-error{{cannot assign through subscript: 'kp' is a read-only key path}}
405-
writable[keyPath: kp] = sink // expected-error{{cannot assign through subscript: 'kp' is a read-only key path}}
404+
readonly[keyPath: kp] = sink // expected-error{{cannot assign through subscript: 'kp' is read-only}}
405+
writable[keyPath: kp] = sink // expected-error{{cannot assign through subscript: 'kp' is read-only}}
406406
readonly[keyPath: wkp] = sink // expected-error{{cannot assign through subscript: 'readonly' is a 'let' constant}}
407407
writable[keyPath: wkp] = sink
408408
readonly[keyPath: rkp] = sink
@@ -421,8 +421,8 @@ func testKeyPathSubscriptTuple(readonly: (Z,Z), writable: inout (Z,Z),
421421
sink = readonly[keyPath: rkp]
422422
sink = writable[keyPath: rkp]
423423

424-
readonly[keyPath: kp] = sink // expected-error{{cannot assign through subscript: 'kp' is a read-only key path}}
425-
writable[keyPath: kp] = sink // expected-error{{cannot assign through subscript: 'kp' is a read-only key path}}
424+
readonly[keyPath: kp] = sink // expected-error{{cannot assign through subscript: 'kp' is read-only}}
425+
writable[keyPath: kp] = sink // expected-error{{cannot assign through subscript: 'kp' is read-only}}
426426
readonly[keyPath: wkp] = sink // expected-error{{cannot assign through subscript: 'readonly' is a 'let' constant}}
427427
writable[keyPath: wkp] = sink
428428
readonly[keyPath: rkp] = sink

0 commit comments

Comments
 (0)