Skip to content

Instantly share code, notes, and snippets.

@armando-couto
Created March 9, 2020 00:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save armando-couto/17eb6233fd66b882a0d361a6901cb137 to your computer and use it in GitHub Desktop.
Save armando-couto/17eb6233fd66b882a0d361a6901cb137 to your computer and use it in GitHub Desktop.
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