From 37f6b10e4b16e287c19f245101009b68c7265a8b Mon Sep 17 00:00:00 2001 From: Pietro Peterlongo Date: Sat, 24 Sep 2022 18:25:03 +0200 Subject: [PATCH] found bug when using columns twice in nimislides --- columns_twice.nim | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 columns_twice.nim diff --git a/columns_twice.nim b/columns_twice.nim new file mode 100644 index 0000000..daf28c4 --- /dev/null +++ b/columns_twice.nim @@ -0,0 +1,25 @@ +import nimib, nimislides + +nbInit(theme = revealTheme) +slide: + columns: + column: + nbText: "Left Column" + column: + nbText: "Right Column" +const showError = true +when showError: + slide: + columns: + column: # compile error here + nbText: "Left Column" + column: + nbText: "Right Column" +#[ + Error: ambiguous call; both columns_twice.column(bodyInner`gensym13: untyped) + [template declared in /Users/pietroppeter/nimib-reveal/src/nimiSlides.nim(482, 12)] + and columns_twice.column(bodyInner`gensym63: untyped) + [template declared in /Users/pietroppeter/nimib-reveal/src/nimiSlides.nim(482, 12)] + match for: () +]# +nbSave