mirror of
https://github.com/nim-lang/Nim.git
synced 2026-06-11 22:28:12 +00:00
move since from inclrtl to std/private/since (#14188)
* move since from inclrtl to std/private/since * move since import in system below for HCR
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
include system/inclrtl
|
||||
import std/private/since
|
||||
|
||||
proc fun1(): int {.since: (1,3).} = 12
|
||||
proc fun1Bad(): int {.since: (99,3).} = 12
|
||||
proc fun2(): int {.since: (1,3,1).} = 12
|
||||
proc fun2Bad(): int {.since: (99,3,1).} = 12
|
||||
proc fun1(): int {.since: (1, 3).} = 12
|
||||
proc fun1Bad(): int {.since: (99, 3).} = 12
|
||||
proc fun2(): int {.since: (1, 3, 1).} = 12
|
||||
proc fun2Bad(): int {.since: (99, 3, 1).} = 12
|
||||
|
||||
doAssert fun1() == 12
|
||||
doAssert declared(fun1)
|
||||
@@ -23,7 +23,7 @@ since (1, 3, 1):
|
||||
ok = true
|
||||
doAssert ok
|
||||
|
||||
since (99,3):
|
||||
since (99, 3):
|
||||
doAssert false
|
||||
|
||||
when false:
|
||||
Reference in New Issue
Block a user