Skip to content

Commit

Permalink
Fix test diagnose issue
Browse files Browse the repository at this point in the history
  • Loading branch information
kaizhangNV committed Jan 24, 2025
1 parent f5493b4 commit d7722af
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/diagnostics/variable-redeclaration.slang.expected
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,24 @@ struct S
tests/diagnostics/variable-redeclaration.slang(41): note: see previous declaration of 'f'
struct S
^
tests/diagnostics/variable-redeclaration.slang(43): error 39999: ambiguous reference to 'f'
int f;
^
tests/diagnostics/variable-redeclaration.slang(44): note 39999: candidate: float S.f
float f;
^
tests/diagnostics/variable-redeclaration.slang(43): note 39999: candidate: int S.f
int f;
^
tests/diagnostics/variable-redeclaration.slang(44): error 39999: ambiguous reference to 'f'
float f;
^
tests/diagnostics/variable-redeclaration.slang(44): note 39999: candidate: float S.f
float f;
^
tests/diagnostics/variable-redeclaration.slang(43): note 39999: candidate: int S.f
int f;
^
tests/diagnostics/variable-redeclaration.slang(53): error 39999: ambiguous reference to 'size'
return size;
^~~~
Expand Down

0 comments on commit d7722af

Please sign in to comment.