Skip to content

Handle non-generic class extensions #3063

Description

@nordlander

Acton Version

0.29.1.20260817.9.18.51

Steps to Reproduce and Observed Behavior

This fails to find the int(Eq) extension when comparing the item attributes:

class Apa[X](object):
    item: X
    def __init__(self, item: X):
        self.item = item

extension Apa[int] (Eq):
    def __eq__(a, b) -> bool:
        return a.item == b.item

Expected Behavior

Should compile just fine

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions