mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-19 14:00:35 +00:00
language cleanup: the .unchecked pragma is dead
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user