diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2018-06-18 15:01:42 -0400 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2018-06-18 15:01:42 -0400 |
| commit | 5d705fc6e35e75a604d3dbbb377ab01bf2b2b575 (patch) | |
| tree | a107156cf3a48f1dace171fca865c34ae032f8f2 /test/cases/error.zig | |
| parent | 1ca90b585692c9611c64412844d2f3a7b3e11340 (diff) | |
| download | zig-5d705fc6e35e75a604d3dbbb377ab01bf2b2b575.tar.gz zig-5d705fc6e35e75a604d3dbbb377ab01bf2b2b575.zip | |
remove error set casting syntax. add `@errSetCast`
See #1061
Diffstat (limited to 'test/cases/error.zig')
| -rw-r--r-- | test/cases/error.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/cases/error.zig b/test/cases/error.zig index 693631fe2d..95890d8384 100644 --- a/test/cases/error.zig +++ b/test/cases/error.zig @@ -124,8 +124,8 @@ const Set2 = error{ }; fn testExplicitErrorSetCast(set1: Set1) void { - var x = Set2(set1); - var y = Set1(x); + var x = @errSetCast(Set2, set1); + var y = @errSetCast(Set1, x); assert(y == error.A); } |
