support useVersion:1.6 (#19601)

This commit is contained in:
flywind 2022-03-11 00:01:27 +08:00 • committed by GitHub
commit 4c76f9f152
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 57 additions and 9 deletions

View file

@ -1,6 +1,5 @@
discard """
cmd: "nim c --useVersion:1.0 -r $file"
output: "1.0.100"
matrix: "--useVersion:1.0"
"""
{.warning[UnusedImport]: off.}
@ -47,4 +46,4 @@ import std/[
]
echo NimVersion
doAssert NimVersion == "1.0.100"

View file

@ -0,0 +1,49 @@
discard """
matrix: "--useVersion:1.6"
"""
{.warning[UnusedImport]: off.}
import std/[
# Core:
bitops, typetraits, lenientops, macros, volatile,
# Algorithms:
algorithm, sequtils,
# Collections:
critbits, deques, heapqueue, intsets, lists, options, sets,
sharedlist, tables,
# Strings:
editdistance, wordwrap, parseutils, ropes,
pegs, punycode, strformat, strmisc, strscans, strtabs,
strutils, unicode, unidecode,
# Generic operator system services:
os, streams,
# Math libraries:
complex, math, mersenne, random, rationals, stats, sums,
# Internet protocols:
httpcore, mimetypes, uri,
# Parsers:
htmlparser, json, lexbase, parsecfg, parsecsv, parsesql, parsexml,
# XML processing:
xmltree, xmlparser,
# Generators:
htmlgen,
# Hashing:
base64, hashes,
# Miscellaneous:
colors, sugar, varints,
]
doAssert NimVersion == "1.6.100"