Skip to content

Instantly share code, notes, and snippets.

@chalin
Created February 6, 2018 20:16
Show Gist options
  • Save chalin/0d934e197a5b12843c6aceed7855e9e0 to your computer and use it in GitHub Desktop.
Save chalin/0d934e197a5b12843c6aceed7855e9e0 to your computer and use it in GitHub Desktop.
main () {
List<dynamic> strings = ["not", "ints"];
List<int> numbers = strings; // <- strong mode error?
for (var number in numbers) {
print(number - 10); // <— Boom!
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment