Skip to content

Instantly share code, notes, and snippets.

@chooyan-eng
Created March 12, 2019 14:42
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 chooyan-eng/ec72a41144b96509f8b98ed7c97f7ac9 to your computer and use it in GitHub Desktop.
Save chooyan-eng/ec72a41144b96509f8b98ed7c97f7ac9 to your computer and use it in GitHub Desktop.
void main() {
printArg(10);
}
printArg(var arg) {
print(arg); // -> 10
arg = "str"; // reassigning here is valid
print(arg); // -> str
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment