mirror of
https://github.com/nim-lang/Nim.git
synced 2026-05-01 03:24:41 +00:00
fixes #23943 --------- Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
This commit is contained in:
@@ -771,5 +771,10 @@ template main {.dirty.} =
|
||||
var s = default(Object)
|
||||
doAssert s.id == 1.2
|
||||
|
||||
block: # bug #23943
|
||||
type limited_int = range[1..20]
|
||||
var d: limited_int;
|
||||
doAssert d == 1
|
||||
|
||||
static: main()
|
||||
main()
|
||||
|
||||
Reference in New Issue
Block a user