Closed
Description
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]