From 2f547afb0f2ca38d317d95cd9fc17fafc6b403df Mon Sep 17 00:00:00 2001 From: metagn Date: Tue, 18 Apr 2023 11:35:35 +0300 Subject: import brackets support `as` and prefixes [backport] (#21636) * import brackets support `as` and prefixes fixes #21635 * copyTree -> copyNode --- 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 c4e37c269..84f4bb545 100644 --- a/compiler/importer.nim +++ b/compiler/importer.nim @@ -323,22 +323,24 @@ proc evalImport*(c: PContext, n: PNode): PNode = result = newNodeI(nkImportStmt, n.info) for i in 0..