Skip to content

Newruntime: Parsing owned ref Foo - Error: region needs to be an object type #12091

Closed
@mratsim

Description

@mratsim

With --newruntime the following syntax owned ref T triggers invalid parser error

Error: region needs to be an object type

This is probably a remnant of the removed memory regions where the wrong syntax returned that error message (see https://forum.nim-lang.org/t/3158).

Test case:

type ObjectPool*[T: object] = object
  stack: seq[owned ref T]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions