mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 08:54:53 +00:00
@@ -164,7 +164,7 @@ type
|
||||
|
||||
const
|
||||
nkSkip = {nkEmpty..nkNilLit, nkTemplateDef, nkTypeSection, nkStaticStmt,
|
||||
nkCommentStmt, nkMixinStmt, nkBindStmt} + procDefs
|
||||
nkCommentStmt, nkMixinStmt, nkBindStmt, nkTypeOfExpr} + procDefs
|
||||
emptyStateLabel = -1
|
||||
localNotSeen = -1
|
||||
localRequiresLifting = -2
|
||||
|
||||
7
tests/iter/ttypeofclosureiter.nim
Normal file
7
tests/iter/ttypeofclosureiter.nim
Normal file
@@ -0,0 +1,7 @@
|
||||
# issue #24859
|
||||
|
||||
template u(): int =
|
||||
yield 0
|
||||
0
|
||||
iterator s(): int {.closure.} = discard default(typeof(u()))
|
||||
let _ = s
|
||||
Reference in New Issue
Block a user