-
-
Notifications
You must be signed in to change notification settings - Fork 17.5k
Explict kind declarations on types #3890
Copy link
Copy link
Closed
Labels
A-type-systemArea: Type systemArea: Type systemC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.
Description
Activity
Metadata
Metadata
Assignees
Labels
A-type-systemArea: Type systemArea: Type systemC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.
It's happened to me several times that I've known that a type needed to be
SendorConst, but I didn't find out until after I had already defined it and tried to use it with aSendorConsttype parameter that it wasn`t the right kind.Something like this would maybe help:
It would basically not do anything except generate an error if it doesn't type check. I might actually prefer that even the kind traits must be declared explicitly.