Skip to content

Commit 54c3b92

Browse files
committed
Update lower golden fixture for deref_postfix_parens test case
https://claude.ai/code/session_0181NuipeuMorkJgDi4dh3Dp
1 parent 7a0e7b5 commit 54c3b92

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

wado-compiler/tests/format.fixtures.golden/all.lower.wado

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12185,6 +12185,11 @@ fn ref_cast_parens(x: i32) {
1218512185
Box<i64> { value: x as i64 };
1218612186
}
1218712187

12188+
fn deref_postfix_parens(data: &Array<i32>, p: &Array<i32>) {
12189+
*data."Array<i32>^IndexValue::index_value"(0);
12190+
*p."Array<i32>^IndexValue::index_value"(1);
12191+
}
12192+
1218812193
pub fn "Color^Eq::eq"(self: &Color, other: &Color) -> bool {
1218912194
return (*self == *other);
1219012195
}
@@ -13071,6 +13076,13 @@ pub fn "&<Point>^Eq::eq"(self: &&Point, other: &&Point) -> bool {
1307113076
return (*self ref.eq *other);
1307213077
}
1307313078

13079+
fn "Array<i32>^IndexValue::index_value"(self: &Array<i32>, index: i32) -> i32 {
13080+
if (index >= self.used) {
13081+
core::internal::panic("index out of bounds");
13082+
}
13083+
return core::builtin::array_get::<i32>(self.repr, index);
13084+
}
13085+
1307413086
fn "ArrayIter<Point>^Iterator::next"(self: &mut ArrayIter<Point>) -> Option<Point> {
1307513087
if (self.index >= self.used) {
1307613088
return null;

0 commit comments

Comments
 (0)