From ae31ed4665386fbefaf0b73ddd8273e9d1103a8f Mon Sep 17 00:00:00 2001 From: metagn Date: Tue, 18 Apr 2023 11:35:35 +0300 Subject: [PATCH] import brackets support `as` and prefixes [backport] (#21636) * import brackets support `as` and prefixes fixes #21635 * copyTree -> copyNode (cherry picked from commit 2f547afb0f2ca38d317d95cd9fc17fafc6b403df) --- compiler/importer.nim | 26 ++++++++++++++------------ tests/modules/timportas.nim | 11 ++++++++--- 2 files changed, 22 insertions(+), 15 deletions(-) diff --git a/compiler/importer.nim b/compiler/importer.nim index 9d073fa8fa..79d68e2a3f 100644 --- a/compiler/importer.nim +++ b/compiler/importer.nim @@ -320,22 +320,24 @@ proc evalImport*(c: PContext, n: PNode): PNode = result = newNodeI(nkImportStmt, n.info) for i in 0..