Created
March 12, 2019 14:42
-
-
Save chooyan-eng/ec72a41144b96509f8b98ed7c97f7ac9 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
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