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

Unified Diff: pkg/front_end/lib/src/fasta/source/source_class_builder.dart

Issue 2675603002: Reduce strong mode errors and warnings (Closed)
Patch Set: don't override isAbstract, it's already defined in ModifierBuilder Created 3 years, 10 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/front_end/lib/src/fasta/source/source_class_builder.dart
diff --git a/pkg/front_end/lib/src/fasta/source/source_class_builder.dart b/pkg/front_end/lib/src/fasta/source/source_class_builder.dart
index 1ec438d3eea2861f8c8cb41590b8f88b575624a1..1601f7496d0f4a3a241a3cdbe2c05e015c751a0d 100644
--- a/pkg/front_end/lib/src/fasta/source/source_class_builder.dart
+++ b/pkg/front_end/lib/src/fasta/source/source_class_builder.dart
@@ -100,7 +100,9 @@ class SourceClassBuilder extends KernelClassBuilder {
int convertConstructors(KernelLibraryBuilder library) {
List<String> oldConstructorNames = <String>[];
- members.forEach((String name, MemberBuilder builder) {
+ // TODO(sigmund): should be `covariant MemberBuilder`
+ members.forEach((String name, dynamic b) {
+ MemberBuilder builder = b;
if (isConstructorName(name, this.name)) {
oldConstructorNames.add(name);
String newName = "";

Powered by Google App Engine
This is Rietveld 408576698