File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -78,6 +78,18 @@ func invalidPackRefRepeatInt(_: repeat Int) {}
78
78
// expected-error@+1 {{pack reference 'T' requires expansion using keyword 'repeat'}}
79
79
func packRefOutsideExpansion< each T > ( _: each T ) { }
80
80
81
+ // expected-error@+1 {{pack reference 'T' requires expansion using keyword 'repeat'}}
82
+ func packRefOutsideExpansion< each T > ( _: Array < each T > ) { }
83
+
84
+ // expected-error@+1 {{pack reference 'T' requires expansion using keyword 'repeat'}}
85
+ func packRefOutsideExpansion< each T > ( _: Array < ( each T ) -> ( ) > ) { }
86
+
87
+ // expected-error@+1 {{pack reference 'T' requires expansion using keyword 'repeat'}}
88
+ func packRefOutsideExpansion< each T > ( _: ( each T ) ) { }
89
+
90
+ // expected-error@+1 {{pack reference 'T' requires expansion using keyword 'repeat'}}
91
+ func packRefOutsideExpansion< each T > ( _: each T . Type ) { }
92
+
81
93
// coverage to ensure a 'repeat each' type is considered Copyable
82
94
func golden< Z> ( _ z: Z ) { }
83
95
func hour< each T > ( _ t: repeat each T ) {
You can’t perform that action at this time.
0 commit comments