Skip to content

Commit

Permalink
Fix DDC errors
Browse files Browse the repository at this point in the history
  • Loading branch information
vsmenon committed Apr 7, 2016
1 parent c17dc1c commit 529988b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion modules/angular2/src/core/application_ref.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
4 changes: 3 additions & 1 deletion modules/angular2/src/router/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});
Expand Down
2 changes: 1 addition & 1 deletion scripts/ci/build_dart_ddc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 529988b

Please sign in to comment.