Skip to content

Commit

Permalink
found bug when using columns twice in nimislides
Browse files Browse the repository at this point in the history
  • Loading branch information
pietroppeter committed Sep 24, 2022
1 parent f314431 commit 37f6b10
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions columns_twice.nim
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 37f6b10

Please sign in to comment.