mirror of
https://github.com/nim-lang/Nim.git
synced 2026-07-18 23:11:36 +00:00
fixes tcompiletimerange [bugfix] (#11720)
This commit is contained in:
@@ -1,18 +1,17 @@
|
||||
discard """
|
||||
disabled: "true"
|
||||
"""
|
||||
|
||||
# issue #8199
|
||||
|
||||
const rangesGCHoldEnabled = not defined(rangesDisableGCHold)
|
||||
const rangesGCHoldEnabled = true # not defined(rangesDisableGCHold)
|
||||
|
||||
type
|
||||
# A view into immutable array
|
||||
Range*[T] {.shallow.} = object
|
||||
when rangesGCHoldEnabled:
|
||||
gcHold: seq[T]
|
||||
start: ptr T
|
||||
mLen: int32
|
||||
gcHold: seq[T] # 0
|
||||
start: ptr T # 1
|
||||
mLen: int32 # 2
|
||||
|
||||
type
|
||||
BytesRange* = Range[byte]
|
||||
|
||||
Reference in New Issue
Block a user