-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Related problem
No response
Requested feature
Potential syntax:
class TheObject {
operator fun ++() { ... } // Unary operators
operator fun +(other) { ... } // Binary/logical operators
}Both functions would require a return value, would also be nice to integrate this with type declarations, so it is possible to limit the accepted other parameter types (and reject at evaluation if an argument is invalid, either during resolving (if possible) or at interpretation).
Metadata
Metadata
Assignees
Labels
No labels