Skip to content

Instantly share code, notes, and snippets.

@ikedaisuke
Created October 22, 2011 07:20
Show Gist options
  • Save ikedaisuke/1305738 to your computer and use it in GitHub Desktop.
Save ikedaisuke/1305738 to your computer and use it in GitHub Desktop.
dart (bleeding_edge rev. 623) の型検査バグ? ではなく、型検査オプションが必要だという話でした
foo() {
List<List<int>> arr;
arr[0] = 0; // no error nor warning
arr = 0; // ditto
}
main() {}
// % dart foo.dart
// %
// % dart --enable_type_chekcs foo.dart
// %
// % dartc foo.dart --enable_type_checks
// foo.dart/foo.dart:3: int is not assignable to List<int>
// ... messages ...
// % dartc foo.dart --enable_type_checks
// %
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment