mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-21 23:05:27 +00:00
* fixes #20958; fixes the return type of slice function * add a testcase
This commit is contained in:
@@ -61,3 +61,15 @@ maino() # Doesn't work outside a proc
|
||||
|
||||
when true:
|
||||
main()
|
||||
|
||||
block two:
|
||||
proc f(a: openArray[int]) =
|
||||
discard
|
||||
|
||||
proc main() =
|
||||
var a: array[0..9, int] = [0,1,2,3,4,5,6,7,8,9]
|
||||
parallel:
|
||||
spawn f(a[0..2])
|
||||
|
||||
|
||||
main()
|
||||
Reference in New Issue
Block a user