Skip to content

Commit bd1b415

Browse files
committed
---
yaml --- r: 344039 b: refs/heads/master-rebranch c: 73a218f h: refs/heads/master i: 344037: 1f06a0e 344035: 76cdeac 344031: 047cc43
1 parent 4dae16c commit bd1b415

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1455,7 +1455,7 @@ refs/tags/swift-DEVELOPMENT-SNAPSHOT-2019-08-02-a: ddd2b2976aa9bfde5f20fe37f6bd2
14551455
refs/tags/swift-DEVELOPMENT-SNAPSHOT-2019-08-03-a: 171cc166f2abeb5ca2a4003700a8a78a108bd300
14561456
refs/heads/benlangmuir-patch-1: baaebaf39d52f3bf36710d4fe40cf212e996b212
14571457
refs/heads/i-do-redeclare: 8c4e6d5de5c1e3f0a2cedccf319df713ea22c48e
1458-
refs/heads/master-rebranch: 40985b6eb7d8e1923a25d5c005783ce4e54cbc01
1458+
refs/heads/master-rebranch: 73a218fd8ad57e405fa35bef03d87acda9698927
14591459
refs/heads/rdar-53901732: 9bd06af3284e18a109cdbf9aa59d833b24eeca7b
14601460
refs/heads/revert-26776-subst-always-returns-a-type: 1b8e18fdd391903a348970a4c848995d4cdd789c
14611461
refs/heads/tensorflow-merge: 8b854f62f80d4476cb383d43c4aac2001dde3cec

branches/master-rebranch/test/Constraints/diagnostics.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,10 @@ f0(i, i,
4646
i) // expected-error{{extra argument in call}}
4747

4848

49-
// Position mismatch
49+
// Cannot conform to protocols.
5050
f5(f4) // expected-error {{function type '(Int) -> Int' cannot conform to 'P2'; only struct/enum/class types can conform to protocols}}
51+
f5((1, "hello")) // expected-error {{tuple type '(Int, String)' cannot conform to 'P2'; only struct/enum/class types can conform to protocols}}
52+
f5(Int.self) // expected-error {{metatype type 'Int.Type' cannot conform to 'P2'; only struct/enum/class types can conform to protocols}}
5153

5254
// Tuple element not convertible.
5355
f0(i,

0 commit comments

Comments
 (0)