Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

Create quickfix that handles missing typed parameters on Array literals #15

Closed
jacob314 opened this issue Dec 23, 2014 · 1 comment
Closed

Comments

@jacob314
Copy link
Contributor

We're seeing 1000s if issues due to missing types on Array literals. If an error occurred we know what they should have written. Go ahead and write it as a quick fix.

Example:

Iterable<Type> get _types {
    if (_bindings == null) return  /* severe: StaticTypeError */ [];
    ...
}

should be rewritten as

Iterable<Type> get _types {
    if (_bindings == null) return  <Type>[];
    ...
}

by the quickfix tool

@vsmenon
Copy link
Contributor

vsmenon commented Aug 12, 2015

Downward inference now handles these cases.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

2 participants