Fix DDC errors

This commit is contained in:
Vijay Menon
2016-03-31 16:49:49 -07:00
committed by vsmenon
parent c17dc1c057
commit 529988bc81
4 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -250,7 +250,7 @@ export class PlatformRef_ extends PlatformRef {
provide(ApplicationRef, {useFactory: (): ApplicationRef => app, deps: []})
]);
var exceptionHandler: Function;
var exceptionHandler: ExceptionHandler;
try {
injector = this.injector.resolveAndCreateChild(providers);
exceptionHandler = injector.get(ExceptionHandler);
@@ -246,8 +246,8 @@ class ReflectionCapabilities implements PlatformReflectionCapabilities {
List _convertParameter(ParameterMirror p) {
var t = p.type;
var res = (!t.hasReflectedType || t.reflectedType == dynamic)
? []
: [t.reflectedType];
? <Object>[]
: <Object>[t.reflectedType];
res.addAll(p.metadata.map((m) => m.reflectee));
return res;
}
+3 -1
View File
@@ -338,7 +338,9 @@ export class Router {
return false;
}
if (isPresent(this._childRouter)) {
return this._childRouter._routerCanDeactivate(childInstruction);
// TODO: ideally, this closure would map to async-await in Dart.
// For now, casting to any to suppress an error.
return <any>this._childRouter._routerCanDeactivate(childInstruction);
}
return true;
});
+1 -1
View File
@@ -15,7 +15,7 @@ cd $REPO_ROOT_DIR
DDC_TOTAL_WARNING_CAP="210"
DDC_TOTAL_ERROR_CAP="0"
DDC_DIR=`pwd`/tmp/dev_compiler
DDC_VERSION="0.1.20"
DDC_VERSION="0.1.23"
# Get DDC
mkdir -p tmp