remove ArrayDummySize with unchecked arrays (#5818)
This commit is contained in:
parent
b2aae477d1
commit
22684370b0
11 changed files with 25 additions and 28 deletions
5
tests/array/tunchecked.nim
Normal file
5
tests/array/tunchecked.nim
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{.boundchecks: on.}
|
||||
type Unchecked {.unchecked.} = array[0, char]
|
||||
|
||||
var x = cast[ptr Unchecked](alloc(100))
|
||||
x[5] = 'x'
|
||||
Loading…
Add table
Add a link
Reference in a new issue