Created
October 22, 2011 07:20
-
-
Save ikedaisuke/1305738 to your computer and use it in GitHub Desktop.
dart (bleeding_edge rev. 623) の型検査バグ? ではなく、型検査オプションが必要だという話でした
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
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