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

Unified Diff: tests/language/src/InterfaceFactoryTest.dart

Issue 9664004: Annotates some more tests for static type warnings (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 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: tests/language/src/InterfaceFactoryTest.dart
diff --git a/tests/language/src/InterfaceFactoryTest.dart b/tests/language/src/InterfaceFactoryTest.dart
index ad786ad31cc6fb81472ced76a9c5b55dc1f57a3e..b16eafc4a8738d3982775586bdc90bfebacb64b7 100644
--- a/tests/language/src/InterfaceFactoryTest.dart
+++ b/tests/language/src/InterfaceFactoryTest.dart
@@ -1,4 +1,4 @@
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
//
@@ -8,7 +8,8 @@
// a default implementation of the interface.
interface Interface1 default DefaultImplementation {
- Interface1(var secret);
+ // first parameter type 'var' not a subtype of 'int' in default implementation
+ Interface1(var secret); /// static type warning
Interface1.named();
GetSecret();

Powered by Google App Engine
This is Rietveld 408576698