parent
fb58066b61
commit
f8c48fc186
2 changed files with 19 additions and 2 deletions
|
|
@ -3,6 +3,7 @@ discard """
|
|||
output: '''
|
||||
hello
|
||||
hello
|
||||
@[4, 3, 2, 1]
|
||||
'''
|
||||
"""
|
||||
|
||||
|
|
@ -11,3 +12,18 @@ import dmodule
|
|||
var val = parseMinValue()
|
||||
if val.kind == minDictionary:
|
||||
echo val
|
||||
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Issue #15035
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
proc countRun(lst: sink openArray[int]): int =
|
||||
discard
|
||||
|
||||
proc timSort(lst: var openArray[int]) =
|
||||
let run = countRun(lst)
|
||||
|
||||
var a = @[4, 3, 2, 1]
|
||||
timSort(a)
|
||||
echo a
|
||||
Loading…
Add table
Add a link
Reference in a new issue