Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(23)

Unified Diff: pkg/analyzer/test/src/task/strong/checker_test.dart

Issue 2054443002: Add analysis option that will be used to fix #26583 (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pkg/analyzer/test/src/task/strong/checker_test.dart
diff --git a/pkg/analyzer/test/src/task/strong/checker_test.dart b/pkg/analyzer/test/src/task/strong/checker_test.dart
index 8a6376dac3265dc9ad457d3a986f8a4c8a7ae737..1cc677666d22d421ed1157ebf2552bbcc8b7ccf0 100644
--- a/pkg/analyzer/test/src/task/strong/checker_test.dart
+++ b/pkg/analyzer/test/src/task/strong/checker_test.dart
@@ -1900,6 +1900,13 @@ main() {
''');
}
+ void test_implicitCasts() {
+ addFile('num n; int i = /*info:ASSIGNMENT_CAST*/n;');
+ check();
+ addFile('num n; int i = /*warning:ASSIGNMENT_CAST*/n;');
+ check(implicitCasts: false);
+ }
+
void test_invalidOverrides_baseClassOverrideToChildInterface() {
checkFile('''
class A {}

Powered by Google App Engine
This is Rietveld 408576698