mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-10-11 03:38:07 +00:00
test(zig): expression-position import case sees the file-struct type twin
This commit is contained in:
parent
9a16f5a042
commit
b9358184fa
1 changed files with 8 additions and 0 deletions
|
|
@ -562,6 +562,14 @@ pub fn f() void {
|
|||
expect(imports).toEqual([
|
||||
{ kind: 'namespace', localName: 'std', importedName: 'std', targetRaw: 'std' },
|
||||
{ kind: 'namespace', localName: 'c', importedName: 'counter', targetRaw: 'counter.zig' },
|
||||
// the namespace import's file-struct TYPE twin (see the file-struct suite)
|
||||
{
|
||||
kind: 'alias',
|
||||
localName: 'c',
|
||||
importedName: 'counter',
|
||||
alias: 'c',
|
||||
targetRaw: 'counter.zig',
|
||||
},
|
||||
{ kind: 'side-effect', targetRaw: 'a.zig' },
|
||||
{ kind: 'side-effect', targetRaw: 'b.zig' },
|
||||
{ kind: 'side-effect', targetRaw: 'ArenaPool.zig' },
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue