Hi, thanks for the quick replies. I am curious to understand what is the "dart linter" doing with respect to types.
I attached a partial result of the warnings I got by re-analyzing dart2js after updating the sources to the last development version.
Each entry is a warning, unfortunately each entry only contains the offset to locate the warning (number of characters from the beginning of the file) instead of the line number, I apologize for that.
It would be interesting for my project to see how many of these bugs can be easilly fixed. My intuition is many.
---------------------
Non Message-Safe Overrding: 16
---------------------
<file:/home/fstrocco/Desktop/PhD/Dart/DartSources/dartRep/dart-repo/dart/pkg/compiler/lib/src/elements/modelx.dart, node:analyzableElement, error:Method return type must be a subtype of method in the superclass for Message-Safe programs, offset:21647, length:17>
<file:/home/fstrocco/Desktop/PhD/Dart/DartSources/dartRep/dart-repo/dart/pkg/compiler/lib/src/elements/modelx.dart, node:analyzableElement, error:Method return type must be a subtype of method in the superclass for Message-Safe programs, offset:27731, length:17>
<file:/home/fstrocco/Desktop/PhD/Dart/DartSources/dartRep/dart-repo/dart/pkg/compiler/lib/src/elements/modelx.dart, node:requiredParameters, error:Method return type must be a subtype of method in the superclass for Message-Safe programs, offset:52910, length:18>
<file:/home/fstrocco/Desktop/PhD/Dart/DartSources/dartRep/dart-repo/dart/pkg/compiler/lib/src/elements/modelx.dart, node:optionalParameters, error:Method return type must be a subtype of method in the superclass for Message-Safe programs, offset:52952, length:18>
<file:/home/fstrocco/Desktop/PhD/Dart/DartSources/dartRep/dart-repo/dart/pkg/compiler/lib/src/elements/modelx.dart, node:orderedOptionalParameters, error:Method return type must be a subtype of method in the superclass for Message-Safe programs, offset:53107, length:25>
<file:/home/fstrocco/Desktop/PhD/Dart/DartSources/dartRep/dart-repo/dart/pkg/compiler/lib/src/elements/modelx.dart, node:firstOptionalParameter, error:Method return type must be a subtype of method in the superclass for Message-Safe programs, offset:54167, length:22>
<file:/home/fstrocco/Desktop/PhD/Dart/DartSources/dartRep/dart-repo/dart/pkg/compiler/lib/src/elements/modelx.dart, node:immediateRedirectionTarget, error:Method return type must be a subtype of method in the superclass for Message-Safe programs, offset:60612, length:26>
<file:/home/fstrocco/Desktop/PhD/Dart/DartSources/dartRep/dart-repo/dart/pkg/compiler/lib/src/elements/modelx.dart, node:analyzableElement, error:Method return type must be a subtype of method in the superclass for Message-Safe programs, offset:63791, length:17>
<file:/home/fstrocco/Desktop/PhD/Dart/DartSources/dartRep/dart-repo/dart/pkg/compiler/lib/src/closure.dart, node:analyzableElement, error:Method return type must be a subtype of method in the superclass for Message-Safe programs, offset:5006, length:17>
<file:/home/fstrocco/Desktop/PhD/Dart/DartSources/dartRep/dart-repo/dart/pkg/compiler/lib/src/closure.dart, node:rawType, error:Method return type must be a subtype of method in the superclass for Message-Safe programs, offset:5239, length:7>
<file:/home/fstrocco/Desktop/PhD/Dart/DartSources/dartRep/dart-repo/dart/pkg/compiler/lib/src/closure.dart, node:thisType, error:Method return type must be a subtype of method in the superclass for Message-Safe programs, offset:5259, length:8>
<file:/home/fstrocco/Desktop/PhD/Dart/DartSources/dartRep/dart-repo/dart/pkg/compiler/lib/src/closure.dart, node:analyzableElement, error:Method return type must be a subtype of method in the superclass for Message-Safe programs, offset:9456, length:17>
<file:/home/fstrocco/Desktop/PhD/Dart/DartSources/dartRep/dart-repo/dart/pkg/compiler/lib/src/resolution/signatures.dart, node:visitSendSet, error:Method return type must be a subtype of method in the superclass for Message-Safe programs, offset:8274, length:12>
<file:/home/fstrocco/Desktop/PhD/Dart/DartSources/dartRep/dart-repo/dart/pkg/compiler/lib/src/resolution/signatures.dart, node:visitFunctionExpression, error:Method return type must be a subtype of method in the superclass for Message-Safe programs, offset:8814, length:23>
<file:/home/fstrocco/Desktop/PhD/Dart/DartSources/dartRep/dart-repo/dart/pkg/compiler/lib/src/dart_backend/backend_ast_emitter.dart, node:memberContext, error:Method return type must be a subtype of method in the superclass for Message-Safe programs, offset:46419, length:13>
<file:/home/fstrocco/Desktop/PhD/Dart/DartSources/dartRep/dart-repo/dart/pkg/compiler/lib/src/js_backend/minify_namer.dart, node:names, error:Method return type must be a subtype of method in the superclass for Message-Safe programs, offset:15773, length:5>
---------------------
Non Message-Safe function assignment: 2
---------------------
<file:/home/fstrocco/Desktop/PhD/Dart/DartSources/dartRep/dart-repo/dart/pkg/compiler/lib/src/cps_ir/cps_ir_builder_visitor.dart, node:subbuild(node.thenExpression), error:The argument type '{0}' cannot be assigned to the parameter type '{1}', offset:16611, length:29>
<file:/home/fstrocco/Desktop/PhD/Dart/DartSources/dartRep/dart-repo/dart/pkg/compiler/lib/src/cps_ir/cps_ir_builder_visitor.dart, node:subbuild(node.elseExpression), error:The argument type '{0}' cannot be assigned to the parameter type '{1}', offset:16650, length:29>