Open
Description
Example
{.experimental: "views".}
type O[T] = object
O[lent int]()
Actual Output
test.nim(4, 8) Error: type mismatch: got 'typedesc[int]' for 'int' but expected 'lent'
Expected Output
No error
Additional Information
- If an indirection via
type Lint = lent int
andOption[Lint]
is done, nothing bad will happen.