Skip to content

infer constructor type arguments from values #25220

Closed
@kasperpeulen

Description

@kasperpeulen

Would it be possible that strong mode infers the type of otherMap below to be Map<String, String>

  var map = new Map<String, String>();   
  var otherMap = new Map.from(map);

Now otherMap has type Map<dynamic, dynamic>.

Metadata

Metadata

Assignees

Labels

P2A bug or feature request we're likely to work onlegacy-area-analyzerUse area-devexp instead.type-enhancementA request for a change that isn't a bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions