Skip to content

Commit c571b26

Browse files
PatrickJStbosch
authored andcommitted
feat(OpaqueToken): now a const constructor
BREAKING CHANGE: now a `const` constructor
1 parent 8bcfb2d commit c571b26

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed
Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
1+
import {CONST} from 'angular2/src/facade/lang';
2+
13
/**
24
*
35
*
46
* @exportedAs angular2/di
57
*/
8+
9+
@CONST()
610
export class OpaqueToken {
711
_desc: string;
812

9-
constructor(desc: string) { this._desc = `Token(${desc})`; }
13+
constructor(desc: string) { this._desc = 'Token(' + desc + ')'; }
1014

1115
toString(): string { return this._desc; }
12-
}
16+
}

0 commit comments

Comments
 (0)