zig/test
Andrew Kelley af8661405b
fix usingnamespace
It used to be that usingnamespace was only allowed at top level. This
made it OK to put the state inside the AST node data structure. However,
now usingnamespace can occur inside any aggregate data structure, and
therefore the state must be in the TopLevelDeclaration rather than in
the AST node.

There were two other problems with the usingnamespace implementation:

 * It was passing the wrong destination ScopeDecl, so it could cause an
   incorrect error such as "import of file outside package path".
 * When doing `usingnamespace` on a file that already had
   `pub usingnamespace` in it would "steal" the usingnamespace, causing
   incorrect "use of undeclared identifier" errors in the target file.

closes #2632
closes #2580
2019-07-19 16:56:44 -04:00
..
stage1 fix usingnamespace 2019-07-19 16:56:44 -04:00
stage2 Recursive rewrite of stage2 parser, part 3 2019-05-12 02:01:45 -07:00
standalone retire the example/ folder, rename test-build-examples to "standalone" 2019-07-16 12:15:46 -04:00
assemble_and_link.zig
cli.zig heap: make one global instance of DirectAllocator 2019-06-22 14:10:53 -04:00
compare_output.zig breaking: Add positional, precision and width support to std.fmt 2019-06-21 20:11:15 +12:00
compile_errors.zig fix usingnamespace 2019-07-19 16:56:44 -04:00
gen_h.zig gen-h: do not output visibility macros when the build is static 2019-05-25 14:17:59 +02:00
runtime_safety.zig different array literal syntax when inferring the size 2019-06-09 19:26:32 -04:00
standalone.zig retire the example/ folder, rename test-build-examples to "standalone" 2019-07-16 12:15:46 -04:00
tests.zig retire the example/ folder, rename test-build-examples to "standalone" 2019-07-16 12:15:46 -04:00
translate_c.zig Merge branch 'translate-c-userland' of https://github.com/hryx/zig into hryx-translate-c-userland 2019-07-15 22:19:54 -04:00