Skip to content

Commit 5e21d21

Browse files
committed
---
yaml --- r: 327644 b: refs/heads/tensorflow c: b2ec5b9 h: refs/heads/master
1 parent 0a7f100 commit 5e21d21

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -816,7 +816,7 @@ refs/tags/swift-DEVELOPMENT-SNAPSHOT-2018-04-25-a: 22f738a831d43aff2b9c9773bcb65
816816
refs/tags/swift-DEVELOPMENT-SNAPSHOT-2018-05-08-a: 7d98cc16689baba5c8a3b90a9329bdcc1a12b4e9
817817
refs/heads/cherr42: a566ad54b073c2c56ac0a705d0a5bed9743135a5
818818
"refs/heads/codable_test_comment_fix": fc8f6824f7f347e1e8db55bff62db385c5728b5a
819-
refs/heads/tensorflow: 911bcee8631bbb68795fcbd103b4ecae310a4571
819+
refs/heads/tensorflow: b2ec5b97b96696b0f06cb4fb32b9acf425c288d7
820820
refs/tags/swift-4.1-DEVELOPMENT-SNAPSHOT-2018-05-11-a: 8126fd7a652e2f70ad6d76505239e34fb2ef3e1a
821821
refs/tags/swift-4.1-DEVELOPMENT-SNAPSHOT-2018-05-12-a: b3fd3dd84df6717f2e2e9df58c6d7e99fed57086
822822
refs/tags/swift-4.1-DEVELOPMENT-SNAPSHOT-2018-05-13-a: 71135119579039dc321c5f65d870050fe36efda2

branches/tensorflow/validation-test/Sema/type_checker_crashers_fixed/rdar50869732.swift

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ struct Generic<T> {
1010

1111
@_functionBuilder
1212
struct Builder {
13-
static func buildBlock<C0, C1>(_ c0: C0, _ c1: C1)
13+
static func buildBlock<C0, C1>(_ c0: C0, _ c1: C1) // expected-note {{where 'C0' = 'Empty'}} expected-note {{where 'C1' = 'Test<Empty>'}}
1414
-> Generic<(C0, C1)> where C0 : P, C1 : P {
1515
return Generic((c0, c1))
1616
}
@@ -24,11 +24,13 @@ struct Empty {
2424
init() {}
2525
}
2626

27-
struct Test<T> where T : P {
27+
struct Test<T> where T : P { // expected-note {{where 'T' = 'Empty'}}
2828
init(@Builder _: () -> T) {}
2929
}
3030

3131
let x = G {
32+
// expected-error@-1 {{static method 'buildBlock' requires that 'Empty' conform to 'P'}}
33+
// expected-error@-2 {{static method 'buildBlock' requires that 'Test<Empty>' conform to 'P'}}
3234
Empty()
33-
Test { <#code#> } // expected-error {{editor placeholder in source file}}
35+
Test { Empty() } // expected-error {{generic struct 'Test' requires that 'Empty' conform to 'P'}}
3436
}

0 commit comments

Comments
 (0)