Closed
Description
Context: I found many usages of class Rectangle<T extends num>
with the non-generic raw type Rectangle
. Seems like it's treated by strong-mode as Rectangle<dynamic>
, while it would seem it could / should be Rectangle<num>
:
import 'dart:math';
foo(Rectangle r) => bar(r);
// ^
// [error] Unsound implicit cast from Rectangle<dynamic> to Rectangle<num>
bar(Rectangle<num> r) => null;
(tested with 1.16.0-dev.2.0
)