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

Unified Diff: lib/src/compiler/element_helpers.dart

Issue 2244703003: fixes #610, incorrect help output (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: fix usageexception printing Created 4 years, 4 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
« no previous file with comments | « lib/src/compiler/compiler.dart ('k') | test/codegen_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/compiler/element_helpers.dart
diff --git a/lib/src/compiler/element_helpers.dart b/lib/src/compiler/element_helpers.dart
index 5af5470fa11a0d8f7ebec7bc3624610ec38a0108..053227dfa8719f607e3946095dd487d67b9d467a 100644
--- a/lib/src/compiler/element_helpers.dart
+++ b/lib/src/compiler/element_helpers.dart
@@ -29,10 +29,9 @@ class Tuple2<T0, T1> {
/*=T*/ fillDynamicTypeArgs/*<T extends DartType>*/(/*=T*/ t) {
if (t is ParameterizedType) {
- var pt = t as ParameterizedType;
var dyn = new List<DartType>.filled(
- pt.typeArguments.length, DynamicTypeImpl.instance);
- return pt.substitute2(dyn, pt.typeArguments) as dynamic/*=T*/;
+ t.typeArguments.length, DynamicTypeImpl.instance);
+ return t.substitute2(dyn, t.typeArguments) as dynamic/*=T*/;
}
return t;
}
« no previous file with comments | « lib/src/compiler/compiler.dart ('k') | test/codegen_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698