Is it a mistake or some reasonable behavior that in strong mode this code
Set<Set<int>> ssi() => ssd();
Set<Set<dynamic>> ssd() => new Set.from(new Set.from(["string"]));
works fine but it
Set<int> si() => sd();
Set<dynamic> sd() => new Set.from(["string"]);
creates WARNING: Unsound implicit cast from Set<dynamic> to Set<int>?
source
share