File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
branches/tensorflow/validation-test/Sema/type_checker_crashers_fixed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -816,7 +816,7 @@ refs/tags/swift-DEVELOPMENT-SNAPSHOT-2018-04-25-a: 22f738a831d43aff2b9c9773bcb65
816
816
refs/tags/swift-DEVELOPMENT-SNAPSHOT-2018-05-08-a: 7d98cc16689baba5c8a3b90a9329bdcc1a12b4e9
817
817
refs/heads/cherr42: a566ad54b073c2c56ac0a705d0a5bed9743135a5
818
818
"refs/heads/codable_test_comment_fix": fc8f6824f7f347e1e8db55bff62db385c5728b5a
819
- refs/heads/tensorflow: 911bcee8631bbb68795fcbd103b4ecae310a4571
819
+ refs/heads/tensorflow: b2ec5b97b96696b0f06cb4fb32b9acf425c288d7
820
820
refs/tags/swift-4.1-DEVELOPMENT-SNAPSHOT-2018-05-11-a: 8126fd7a652e2f70ad6d76505239e34fb2ef3e1a
821
821
refs/tags/swift-4.1-DEVELOPMENT-SNAPSHOT-2018-05-12-a: b3fd3dd84df6717f2e2e9df58c6d7e99fed57086
822
822
refs/tags/swift-4.1-DEVELOPMENT-SNAPSHOT-2018-05-13-a: 71135119579039dc321c5f65d870050fe36efda2
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ struct Generic<T> {
10
10
11
11
@_functionBuilder
12
12
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>'}}
14
14
-> Generic < ( C0 , C1 ) > where C0 : P , C1 : P {
15
15
return Generic ( ( c0, c1) )
16
16
}
@@ -24,11 +24,13 @@ struct Empty {
24
24
init ( ) { }
25
25
}
26
26
27
- struct Test < T> where T : P {
27
+ struct Test < T> where T : P { // expected-note {{where 'T' = 'Empty'}}
28
28
init ( @Builder _: ( ) -> T ) { }
29
29
}
30
30
31
31
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'}}
32
34
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' }}
34
36
}
You can’t perform that action at this time.
0 commit comments