Skip to content

Type inference not handling generic collection #3427

Closed
@sethladd

Description

@sethladd

Sample code:

class Foo {
  String msg;
  Foo(this.msg);
}

main() {
  var foos = <Foo>[];
  foos.add(new Foo('a'));
  var foo = foos[0];
  print(foo.does_not_exist);
}

I would expect a warning on foo.does_not_exist

Current version of editor:

Version 0.1.0.201205301155, Build 8124

Metadata

Metadata

Assignees

Labels

closed-cannot-reproduceClosed as we were unable to reproduce the reported issue

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions