Skip to content

Instantly share code, notes, and snippets.

@nelsonic
Created June 11, 2020 22:37
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save nelsonic/bea94fb6dec3a69799f1f040135489a0 to your computer and use it in GitHub Desktop.
This will not compile as the a is defined as `int` cannot be reassigned to a `String`
void main() {
var a = 42;
a = 'hello';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment