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

Unified Diff: tests/compiler/dart2js/type_order_test.dart

Issue 2939063002: Strong mode cleaning of many dart2js tests. (Closed)
Patch Set: Use ClassElement. Created 3 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: tests/compiler/dart2js/type_order_test.dart
diff --git a/tests/compiler/dart2js/type_order_test.dart b/tests/compiler/dart2js/type_order_test.dart
index c74a0ff4744471c4ad36127148267737665a331c..91b688bfc792a835e77c6a94725906e0ca2f77d6 100644
--- a/tests/compiler/dart2js/type_order_test.dart
+++ b/tests/compiler/dart2js/type_order_test.dart
@@ -9,7 +9,7 @@ import 'package:async_helper/async_helper.dart';
import 'type_test_helper.dart';
import 'package:compiler/src/elements/resolution_types.dart';
import "package:compiler/src/elements/elements.dart"
- show Element, ClassElement, TypedefElement;
+ show ClassElement, TypedefElement;
void main() {
asyncTest(() => TypeEnvironment.create(r"""
@@ -20,7 +20,7 @@ void main() {
class Y {}
class Z {}
""").then((env) {
- List types = [];
+ var types = <ResolutionDartType>[];
ResolutionDartType add(ResolutionDartType type) {
types.add(type);
return type;
@@ -59,7 +59,7 @@ void main() {
ResolutionTypeVariableType CT = add(C_this.typeArguments[0]);
ResolutionTypeVariableType CS = add(C_this.typeArguments[1]);
- Expect.listEquals([
+ Expect.listEquals(<ResolutionDartType>[
void_,
dynamic_,
A_raw,

Powered by Google App Engine
This is Rietveld 408576698