diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-09-03 22:09:47 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-09-03 22:09:47 -0400 |
| commit | 77a5f888be664f9ef09e2c93f52338448e992e00 (patch) | |
| tree | 55d417ed704efe65a406fc18c4a60fe6071ee2df /src/analyze.cpp | |
| parent | 6b27290c681e3cc2acf71d2ef2d78830013bbccb (diff) | |
| download | zig-77a5f888be664f9ef09e2c93f52338448e992e00.tar.gz zig-77a5f888be664f9ef09e2c93f52338448e992e00.zip | |
emit a compile error if a test becomes async
See #3117
Diffstat (limited to 'src/analyze.cpp')
| -rw-r--r-- | src/analyze.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/analyze.cpp b/src/analyze.cpp index 2fd540a64f..e1d6b59ddf 100644 --- a/src/analyze.cpp +++ b/src/analyze.cpp @@ -4195,7 +4195,7 @@ bool fn_is_async(ZigFn *fn) { return fn->inferred_async_node != inferred_async_none; } -static void add_async_error_notes(CodeGen *g, ErrorMsg *msg, ZigFn *fn) { +void add_async_error_notes(CodeGen *g, ErrorMsg *msg, ZigFn *fn) { assert(fn->inferred_async_node != nullptr); assert(fn->inferred_async_node != inferred_async_checking); assert(fn->inferred_async_node != inferred_async_none); |
