File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 1
1
t: @struct <T: type> type = {
2
2
a: i32 = 1;
3
3
}
4
- t: @struct <T: type> type < T> type requires std::is_void_v < T> = {
4
+ t: @struct <T: type> specialize< T> type requires std::is_void_v< T> = {
5
5
b: i32 = 2;
6
6
}
7
- t: @struct type < i64> type = {
7
+ t: @struct specialize< i64> type = {
8
8
c: i32 = 3;
9
9
}
10
- v: <T> i32 = 1; // clang-format off
11
- v: <> type <void> i32 = 2; // clang-format on
10
+ v: <T> i32 = 1;
11
+ v: <> specialize <void> i32 = 2;
12
12
main: () = {
13
13
[[assert Testing: t<i32>().a == 1]]
14
14
[[assert Testing: t<void>().b == 2]]
Original file line number Diff line number Diff line change @@ -22,8 +22,8 @@ template<typename T> requires( std::is_void_v<T> )
22
22
template <> class t <cpp2::i64 > {
23
23
public: cpp2::i32 c {3 };
24
24
};
25
- template <typename T> extern cpp2::i32 v;// clang-format off
26
- // clang-format on
25
+ template <typename T> extern cpp2::i32 v;
26
+
27
27
auto main () -> int;
28
28
29
29
Original file line number Diff line number Diff line change @@ -6473,7 +6473,7 @@ class parser
6473
6473
// G '<' parameter-declaration-seq? '>'
6474
6474
// G
6475
6475
// G template-specialization-argument-list:
6476
- // G 'type ' '<' template-argument-list '>'
6476
+ // G 'specialize ' '<' template-argument-list '>'
6477
6477
// G
6478
6478
auto unnamed_declaration (
6479
6479
source_position start,
@@ -6612,7 +6612,7 @@ class parser
6612
6612
6613
6613
// Next is an optional template specialization argument list
6614
6614
if (
6615
- curr () == " type "
6615
+ curr () == " specialize "
6616
6616
&& peek (1 )
6617
6617
&& peek (1 )->type () == lexeme::Less
6618
6618
)
You can’t perform that action at this time.
0 commit comments