mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-21 06:45:27 +00:00
fixes https://github.com/nim-lang/Nim/issues/12340
(cherry picked from commit a7a8e364ea)
This commit is contained in:
@@ -240,3 +240,11 @@ block: # bug #17197
|
||||
result = true
|
||||
|
||||
doAssert needlemanWunsch("ABC", "DEFG", 1, 2, 3)
|
||||
|
||||
block: # bug #12340
|
||||
func consume(x: sink seq[int]) =
|
||||
x[0] += 5
|
||||
|
||||
let x = @[1, 2, 3, 4]
|
||||
consume x
|
||||
doAssert x == @[1, 2, 3, 4]
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
discard """
|
||||
matrix: "--mm:orc; --mm:refc"
|
||||
matrix: "--mm:orc"
|
||||
"""
|
||||
|
||||
# TODO: --mm:refc
|
||||
|
||||
import std/marshal
|
||||
import std/[assertions, objectdollar, streams]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user