 Chromium Code Reviews
 Chromium Code Reviews Issue 2740003005:
  Add type info to fix analyzer failures for 1.23.0-dev.5.0  (Closed)
    
  
    Issue 2740003005:
  Add type info to fix analyzer failures for 1.23.0-dev.5.0  (Closed) 
  | Index: lib/src/runner/loader.dart | 
| diff --git a/lib/src/runner/loader.dart b/lib/src/runner/loader.dart | 
| index f24ddd0dd3b7b71ba284708b303077875966e812..da5b96520727afa93858d452488ac52768deb21e 100644 | 
| --- a/lib/src/runner/loader.dart | 
| +++ b/lib/src/runner/loader.dart | 
| @@ -164,7 +164,9 @@ class Loader { | 
| return suite; | 
| } catch (error, stackTrace) { | 
| if (error is LoadException) rethrow; | 
| - await new Future.error(new LoadException(path, error), stackTrace); | 
| + await new Future<RunnerSuite>.error( | 
| + new LoadException(path, error), stackTrace); | 
| + return null; | 
| 
nweiz
2017/03/10 21:49:43
With this I think you can get rid of the type anno
 
keertip
2017/03/10 22:18:33
Done.
 | 
| } | 
| }, path: path, platform: platform); | 
| } |