forked from nim-lang/Nim
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
packedsets fix regression introduced in nim-lang#15564 (nim-lang#16060)
* packedsets fix regression introduced in nim-lang#15564 * add tests
- Loading branch information
1 parent
227129d
commit 24b871b
Showing
3 changed files
with
25 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import std/intsets | ||
|
||
proc test1*[]() = | ||
let a = initIntSet() | ||
doAssert len(a) == 0 | ||
|
||
proc test2*[]() = | ||
var a = initIntSet() | ||
var b = initIntSet() | ||
a.incl b |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import ./mintsets | ||
|
||
block: # bug https://github.com/nim-lang/Nim/pull/15564#issuecomment-729878104 | ||
# related to bug #11167 | ||
test1() | ||
test2() |