remove ArrayDummySize with unchecked arrays (#5818)

This commit is contained in:
Jacek Sieka
2017-08-28 21:44:35 +08:00
committed by Andreas Rumpf
parent b2aae477d1
commit 22684370b0
11 changed files with 25 additions and 28 deletions

View File

@@ -0,0 +1,5 @@
{.boundchecks: on.}
type Unchecked {.unchecked.} = array[0, char]
var x = cast[ptr Unchecked](alloc(100))
x[5] = 'x'