import { CONST , CONST_EXPR , forwardRef } from 'angular2/src/facade/lang' ; @ CONST export class MyClass { private error : string = 'error' ; constructor ( private ctorField ) { } get field ( ) : string { if ( ( < any > ' world' ) instanceof String ) { return this . ctorField + ' world' ; } else { return this . error ; } } namedParam ( { x = '?' } = { } ) { return 'hello' + x ; } } interface Observer { update ( o , arg ) ; } export class MySubclass extends MyClass implements Observer { constructor ( ctorField ) { super ( ctorField ) ; } get subclassField ( ) : string { return this . field ; } update ( o , arg ) { this . field = arg . toString ( ) ; } } export const SOME_ARRAY = CONST_EXPR ( [ 1 , 2 , 3 ] ) ; export const someArray = forwardRef ( ( ) => SOME_ARRAY ) ;