diff options
| author | Damian Tarnawski <gthetarnav@gmail.com> | 2024-07-29 19:42:45 +0200 |
|---|---|---|
| committer | Damian Tarnawski <gthetarnav@gmail.com> | 2024-07-29 19:42:45 +0200 |
| commit | 7d188d00fc6ba0e45a94bef18dd44e4f1767652e (patch) | |
| tree | 071777f1804cd3d0bd3939e9dc84afa8f2d034dd /tests | |
| parent | 3e0591f9acee54dc18bdbad682f1a09d0d2d761d (diff) | |
Simplify or_else test
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/hover_test.odin | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/hover_test.odin b/tests/hover_test.odin index 99a14b9..4f69e59 100644 --- a/tests/hover_test.odin +++ b/tests/hover_test.odin @@ -225,9 +225,7 @@ ast_hover_on_union_assertion_with_or_else :: proc(t: ^testing.T) { test :: proc () { Foo :: union {int} foo: Foo = int(0) - for { - nu{*}m := foo.(int) or_else 0 - } + nu{*}m := foo.(int) or_else 0 } `, } |