Created
March 9, 2020 00:45
-
-
Save armando-couto/17eb6233fd66b882a0d361a6901cb137 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MyNumber { | |
num val; | |
num operator + (num n) => val * n; | |
MyNumber(v) { this.val = v; } | |
} | |
main() { | |
MyNumber mn = MyNumber(5); | |
print(mn + 2); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment