| author | |
| committer | |
| log | 34d02f249b8c0742d5d575c439c38a3ed78f9583 |
| tree | e0715f30acb96f0ab2f4838dbc14e9f07b540d45 |
| parent | 57f751a864613cc7c6b53774044d6f8742e05378 |
1 files changed, 2 insertions(+), 1 deletions(-)
test/stage1/behavior/error.zig+2-1| ... | ... | @@ -361,7 +361,8 @@ test "nested catch" { |
| 361 | 361 | test "implicit cast to optional to error union to return result loc" { |
| 362 | 362 | const S = struct { |
| 363 | 363 | fn entry() void { |
| 364 | if (func(undefined)) |opt| { | |
| 364 | var x: Foo = undefined; | |
| 365 | if (func(&x)) |opt| { | |
| 365 | 366 | expect(opt != null); |
| 366 | 367 | } else |_| @panic("expected non error"); |
| 367 | 368 | } |