Skip to content

Commit 2b80fed

Browse files
committed
---
yaml --- r: 343739 b: refs/heads/master-rebranch c: cec0821 h: refs/heads/master i: 343737: 0f0a1df 343735: 96cbea2
1 parent fb2e630 commit 2b80fed

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
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: c79214c3c6f7d2a9880c76b93cae1ec3659dbc8f
1458+
refs/heads/master-rebranch: cec08212205b43de3bf2cc5e0564a2d8940d54b1
14591459
refs/heads/rdar-53901732: 9bd06af3284e18a109cdbf9aa59d833b24eeca7b
14601460
refs/heads/revert-26776-subst-always-returns-a-type: 1b8e18fdd391903a348970a4c848995d4cdd789c
14611461
refs/heads/tensorflow-merge: 8b854f62f80d4476cb383d43c4aac2001dde3cec
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// RUN: not --crash %target-swift-emit-silgen %s
2+
3+
// REQUIRES: asserts
4+
5+
protocol Example {
6+
associatedtype Signed: SignedInteger
7+
associatedtype SP: StringProtocol
8+
var string: String { get }
9+
}
10+
extension Example {
11+
var string: String {
12+
return "Foo"
13+
}
14+
}
15+
class MyClass<T: SignedInteger, S: StringProtocol>: Example {
16+
typealias Signed = T
17+
typealias SP = S
18+
}
19+
extension MyClass where T == Int, S == String {
20+
var string: String {
21+
return "Bar"
22+
}
23+
}
24+
25+
let myclass = MyClass<Int, String>()
26+
27+
print(myclass.string)

0 commit comments

Comments
 (0)