feat(OpaqueToken): now a const constructor

BREAKING CHANGE:

now a `const` constructor
This commit is contained in:
gdi2290 2015-05-29 14:27:46 -07:00 committed by Tobias Bosch
parent 8bcfb2d465
commit c571b2693e
1 changed files with 6 additions and 2 deletions

View File

@ -1,12 +1,16 @@
import {CONST} from 'angular2/src/facade/lang';
/**
*
*
* @exportedAs angular2/di
*/
@CONST()
export class OpaqueToken {
_desc: string;
constructor(desc: string) { this._desc = `Token(${desc})`; }
constructor(desc: string) { this._desc = 'Token(' + desc + ')'; }
toString(): string { return this._desc; }
}
}