Skip to content

of incorrectly reports matches for generic instantiations with same body #22445

Closed
@beef331

Description

@beef331

Description

type
  MyType = ref object of RootObj
  MyChild[T] = ref object of MyType
  
var curr = MyChild[int]()
assert not(curr of MyChild[float])

Nim Version

1.0.0 - 2.0.0

Current Output

An assertion defect

Expected Output

Code to run to completion.

Possible Solution

No response

Additional Information

No response

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