Proposal: Allow operators/casts in new extensions syntax #9534
Answered
by
333fred
NiTiSon
asked this question in
Language Ideas
-
...
{
extension(TypeX)
{
public static TypeX operator +(TypeX x, int y)
{
return new TypeX(x + y);
}
}
} I do not understand why it's not allowed, are there some restriction not allowing to? |
Beta Was this translation helpful? Give feedback.
Answered by
333fred
Jul 17, 2025
Replies: 1 comment 1 reply
-
It simply hasn't been implemented yet. It is planned. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
NiTiSon
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It simply hasn't been implemented yet. It is planned.