language cleanup: the .unchecked pragma is dead

This commit is contained in:
Araq
2018-11-05 14:53:04 +01:00
committed by Andreas Rumpf
parent cc5b8c6ad2
commit e71410d74e
8 changed files with 20 additions and 26 deletions

View File

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