fix usingnamespace analyzing the expression multiple times
parent
d6d0bb0542
commit
a3327f0fbd
|
@ -3353,7 +3353,8 @@ static void resolve_use_decl(CodeGen *g, TldUsingNamespace *tld_using_namespace,
|
||||||
|
|
||||||
static void preview_use_decl(CodeGen *g, TldUsingNamespace *using_namespace, ScopeDecls *dest_decls_scope) {
|
static void preview_use_decl(CodeGen *g, TldUsingNamespace *using_namespace, ScopeDecls *dest_decls_scope) {
|
||||||
if (using_namespace->base.resolution == TldResolutionOk ||
|
if (using_namespace->base.resolution == TldResolutionOk ||
|
||||||
using_namespace->base.resolution == TldResolutionInvalid)
|
using_namespace->base.resolution == TldResolutionInvalid ||
|
||||||
|
using_namespace->using_namespace_value != nullptr)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue