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

Unified Diff: pkg/front_end/lib/src/fasta/kernel/kernel_target.dart

Issue 2883343002: Disable type erasure during strong mode tests. (Closed)
Patch Set: Created 3 years, 7 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 | « no previous file | pkg/front_end/test/fasta/strong.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/lib/src/fasta/kernel/kernel_target.dart
diff --git a/pkg/front_end/lib/src/fasta/kernel/kernel_target.dart b/pkg/front_end/lib/src/fasta/kernel/kernel_target.dart
index 4be81b7332951d2f609d1a8f4a711a73f26d3d81..ec672cb60728db1a4e004e279ef04f89bf385c70 100644
--- a/pkg/front_end/lib/src/fasta/kernel/kernel_target.dart
+++ b/pkg/front_end/lib/src/fasta/kernel/kernel_target.dart
@@ -686,8 +686,10 @@ class KernelTarget extends TargetImplementation {
void otherTransformations() {
// TODO(ahe): Don't generate type variables in the first place.
- program.accept(new Erasure());
- ticker.logMs("Erased type variables in generic methods");
+ if (!strongMode) {
+ program.accept(new Erasure());
+ ticker.logMs("Erased type variables in generic methods");
+ }
// TODO(kmillikin): Make this run on a per-method basis.
transformAsync.transformProgram(program);
ticker.logMs("Transformed async methods");
« no previous file with comments | « no previous file | pkg/front_end/test/fasta/strong.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698