Skip to content

Commit eefa21d

Browse files
JohelEGPthreeifbyair
authored andcommitted
test: fix default initializer
1 parent cd7cb99 commit eefa21d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

regression-tests/pure2-hashable.cpp2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ base: @struct @hashable type = {
33
}
44

55
mystruct: @struct @hashable type = {
6-
this: base = (1);
6+
this: base = 1;
77
i: i32;
88
j: std::string;
99
k: u64;
@@ -12,4 +12,4 @@ mystruct: @struct @hashable type = {
1212
main: () = {
1313
x: mystruct = (2, "three", 4u);
1414
std::cout << x.hash();
15-
}
15+
}

regression-tests/test-results/pure2-hashable.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ return ret;
6666

6767
mystruct::mystruct(auto&& i_, auto&& j_, auto&& k_)
6868
requires (std::is_convertible_v<CPP2_TYPEOF(i_), std::add_const_t<cpp2::i32>&> && std::is_convertible_v<CPP2_TYPEOF(j_), std::add_const_t<std::string>&> && std::is_convertible_v<CPP2_TYPEOF(k_), std::add_const_t<cpp2::u64>&>)
69-
: base{ { 1 } }
69+
: base{ 1 }
7070
, i{ CPP2_FORWARD(i_) }
7171
, j{ CPP2_FORWARD(j_) }
7272
, k{ CPP2_FORWARD(k_) }{}

0 commit comments

Comments
 (0)