type Obj[A; B: not A] = object
is accepted but doesn't work as expected
#10739
Labels
type Obj[A; B: not A] = object
is accepted but doesn't work as expected
#10739
Generic symbols can be referenced in generic constraints, but it seems like semcheck doesn't handle it properly.
Example
Current Output
Compiles successfully.
Expected Output
An error stating that
Obj[int, int]
is an invalid type.The text was updated successfully, but these errors were encountered: