@@ -16,21 +16,21 @@ func takeVectorOf2<T>(_: InlineArray<2, T>) {}
16
16
takeVectorOf2 ( [ 1 , 2 ] ) // Ok
17
17
takeVectorOf2 ( [ " hello " , " world " ] ) // Ok
18
18
19
- takeVectorOf2 ( [ 1 ] ) // expected-error {{expected '2' elements in slab literal, but got '1'}}
19
+ takeVectorOf2 ( [ 1 ] ) // expected-error {{expected '2' elements in inline array literal, but got '1'}}
20
20
21
- takeVectorOf2 ( [ 1 , 2 , 3 ] ) // expected-error {{expected '2' elements in slab literal, but got '3'}}
21
+ takeVectorOf2 ( [ 1 , 2 , 3 ] ) // expected-error {{expected '2' elements in inline array literal, but got '3'}}
22
22
23
- takeVectorOf2 ( [ " hello " ] ) // expected-error {{expected '2' elements in slab literal, but got '1'}}
23
+ takeVectorOf2 ( [ " hello " ] ) // expected-error {{expected '2' elements in inline array literal, but got '1'}}
24
24
25
- takeVectorOf2 ( [ " hello " , " world " , " ! " ] ) // expected-error {{expected '2' elements in slab literal, but got '3'}}
25
+ takeVectorOf2 ( [ " hello " , " world " , " ! " ] ) // expected-error {{expected '2' elements in inline array literal, but got '3'}}
26
26
27
27
func takeVectorOf2Int( _: InlineArray < 2 , Int> ) { }
28
28
29
29
takeVectorOf2Int ( [ 1 , 2 ] ) // Ok
30
30
31
- takeVectorOf2Int ( [ 1 ] ) // expected-error {{expected '2' elements in slab literal, but got '1'}}
31
+ takeVectorOf2Int ( [ 1 ] ) // expected-error {{expected '2' elements in inline array literal, but got '1'}}
32
32
33
- takeVectorOf2Int ( [ 1 , 2 , 3 ] ) // expected-error {{expected '2' elements in slab literal, but got '3'}}
33
+ takeVectorOf2Int ( [ 1 , 2 , 3 ] ) // expected-error {{expected '2' elements in inline array literal, but got '3'}}
34
34
35
35
takeVectorOf2Int ( [ " hello " ] ) // expected-error {{cannot convert value of type '[String]' to expected argument type 'InlineArray<2, Int>'}}
36
36
0 commit comments