<p dir="auto">Thanks for publishing the nightly builds, that is very convenient.<br>
I'm working to update angular (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="98217138" data-permission-text="Title is private" data-url="https://github.com/angular/angular/issues/3400" data-hovercard-type="pull_request" data-hovercard-url="/angular/angular/pull/3400/hovercard" href="https://github.com/angular/angular/pull/3400">angular/angular#3400</a>)</p>
<p dir="auto">Repro:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ git clone git@github.com:angular/angular.git; cd angular
$ git fetch origin pull/3400/head:ts1.6
$ git checkout ts1.6
$ npm i
$ cd modules/angular2
$ ../../node_modules/.bin/tsc
/Users/alexeagle/Projects/tmp/angular/node_modules/typescript/bin/tsc.js:29059
                throw e;
                      ^
TypeError: Cannot read property 'kind' of undefined
    at emitSerializedTypeNode (/Users/alexeagle/Projects/tmp/angular/node_modules/typescript/bin/tsc.js:27103:29)
    at emitSerializedTypeOfNode (/Users/alexeagle/Projects/tmp/angular/node_modules/typescript/bin/tsc.js:27087:25)
    at emitSerializedParameterTypesOfNode (/Users/alexeagle/Projects/tmp/angular/node_modules/typescript/bin/tsc.js:27226:37)
    at emitSerializedTypeMetadata (/Users/alexeagle/Projects/tmp/angular/node_modules/typescript/bin/tsc.js:27259:25)
    at emitDecoratorsOfConstructor (/Users/alexeagle/Projects/tmp/angular/node_modules/typescript/bin/tsc.js:26943:17)
    at emitDecoratorsOfClass (/Users/alexeagle/Projects/tmp/angular/node_modules/typescript/bin/tsc.js:26921:17)
    at emitClassLikeDeclarationBelowES6 (/Users/alexeagle/Projects/tmp/angular/node_modules/typescript/bin/tsc.js:26879:17)
    at emitClassLikeDeclaration (/Users/alexeagle/Projects/tmp/angular/node_modules/typescript/bin/tsc.js:26751:21)
    at emitClassDeclaration (/Users/alexeagle/Projects/tmp/angular/node_modules/typescript/bin/tsc.js:26747:24)
    at emitJavaScriptWorker (/Users/alexeagle/Projects/tmp/angular/node_modules/typescript/bin/tsc.js:28675:32)"><pre class="notranslate"><code class="notranslate">$ git clone git@github.com:angular/angular.git; cd angular
$ git fetch origin pull/3400/head:ts1.6
$ git checkout ts1.6
$ npm i
$ cd modules/angular2
$ ../../node_modules/.bin/tsc
/Users/alexeagle/Projects/tmp/angular/node_modules/typescript/bin/tsc.js:29059
                throw e;
                      ^
TypeError: Cannot read property 'kind' of undefined
    at emitSerializedTypeNode (/Users/alexeagle/Projects/tmp/angular/node_modules/typescript/bin/tsc.js:27103:29)
    at emitSerializedTypeOfNode (/Users/alexeagle/Projects/tmp/angular/node_modules/typescript/bin/tsc.js:27087:25)
    at emitSerializedParameterTypesOfNode (/Users/alexeagle/Projects/tmp/angular/node_modules/typescript/bin/tsc.js:27226:37)
    at emitSerializedTypeMetadata (/Users/alexeagle/Projects/tmp/angular/node_modules/typescript/bin/tsc.js:27259:25)
    at emitDecoratorsOfConstructor (/Users/alexeagle/Projects/tmp/angular/node_modules/typescript/bin/tsc.js:26943:17)
    at emitDecoratorsOfClass (/Users/alexeagle/Projects/tmp/angular/node_modules/typescript/bin/tsc.js:26921:17)
    at emitClassLikeDeclarationBelowES6 (/Users/alexeagle/Projects/tmp/angular/node_modules/typescript/bin/tsc.js:26879:17)
    at emitClassLikeDeclaration (/Users/alexeagle/Projects/tmp/angular/node_modules/typescript/bin/tsc.js:26751:21)
    at emitClassDeclaration (/Users/alexeagle/Projects/tmp/angular/node_modules/typescript/bin/tsc.js:26747:24)
    at emitJavaScriptWorker (/Users/alexeagle/Projects/tmp/angular/node_modules/typescript/bin/tsc.js:28675:32)
</code></pre></div>
<p dir="auto">I can also repro with 1.6.0-dev.20150723 FWIW</p>
<p dir="auto">I'm trying to emit metadata for the following class:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@Component()
export class MyClass {

    constructor(test: string, test2: string) {

    }

    @log
    doSomething() {

    }
}


function log(target: Object, key: string, value: any) {
    return {
        value: function(...args: any[]) {
            var a = args.map(a =&gt; JSON.stringify(a)).join();
            var result = value.value.apply(this, args);
            var r = JSON.stringify(result);
            console.log(`Call: ${key}(${a}) =&gt; ${r}`);
            return result;
        }
    };
}

function Component(name?: string) {
    return (target: any) =&gt; {
        target.__name__ = name;
    }
}"><pre class="notranslate"><code class="notranslate">@Component()
export class MyClass {

    constructor(test: string, test2: string) {

    }

    @log
    doSomething() {

    }
}


function log(target: Object, key: string, value: any) {
    return {
        value: function(...args: any[]) {
            var a = args.map(a =&gt; JSON.stringify(a)).join();
            var result = value.value.apply(this, args);
            var r = JSON.stringify(result);
            console.log(`Call: ${key}(${a}) =&gt; ${r}`);
            return result;
        }
    };
}

function Component(name?: string) {
    return (target: any) =&gt; {
        target.__name__ = name;
    }
}
</code></pre></div>
<p dir="auto">I'm getting the error when compiling; the issue seems related to a missing null-check <a href="https://github.com/Microsoft/TypeScript/blob/master/src/compiler/emitter.ts#L4846">here</a>.<br>
I looked at this in debug mode, and the "type" member of the outer node object is missing <a href="https://github.com/Microsoft/TypeScript/blob/master/src/compiler/emitter.ts#L5013">here</a></p>
<p dir="auto">The full stack:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" TypeError: Cannot read property 'kind' of undefined
  at emitSerializedTypeNode (typescriptServices.js:32336:29)
  at emitSerializedReturnTypeOfNode (typescriptServices.js:32477:21)
  at emitSerializedTypeMetadata (typescriptServices.js:32513:25)
  at emitDecoratorsOfMembers (typescriptServices.js:32219:21)
  at emitDecoratorsOfClass (typescriptServices.js:32082:17)
  at emitClassLikeDeclarationBelowES6 (typescriptServices.js:32042:17)
  at emitClassLikeDeclaration (typescriptServices.js:31833:21)
  at emitClassDeclaration (typescriptServices.js:31829:24)
  at emitJavaScriptWorker (typescriptServices.js:34050:32)
  at emitNodeWithoutSourceMap (typescriptServices.js:33860:17)
  at emitNodeWithSourceMap (typescriptServices.js:28602:29)
  at emitLinesStartingAt (typescriptServices.js:28757:21)
  at emitAMDModule (typescriptServices.js:33629:17)
  at emitSourceFileNode (typescriptServices.js:33826:25)
  at emitJavaScriptWorker (typescriptServices.js:34068:32)
  at emitNodeWithoutSourceMap (typescriptServices.js:33860:17)"><pre class="notranslate"><code class="notranslate"> TypeError: Cannot read property 'kind' of undefined
  at emitSerializedTypeNode (typescriptServices.js:32336:29)
  at emitSerializedReturnTypeOfNode (typescriptServices.js:32477:21)
  at emitSerializedTypeMetadata (typescriptServices.js:32513:25)
  at emitDecoratorsOfMembers (typescriptServices.js:32219:21)
  at emitDecoratorsOfClass (typescriptServices.js:32082:17)
  at emitClassLikeDeclarationBelowES6 (typescriptServices.js:32042:17)
  at emitClassLikeDeclaration (typescriptServices.js:31833:21)
  at emitClassDeclaration (typescriptServices.js:31829:24)
  at emitJavaScriptWorker (typescriptServices.js:34050:32)
  at emitNodeWithoutSourceMap (typescriptServices.js:33860:17)
  at emitNodeWithSourceMap (typescriptServices.js:28602:29)
  at emitLinesStartingAt (typescriptServices.js:28757:21)
  at emitAMDModule (typescriptServices.js:33629:17)
  at emitSourceFileNode (typescriptServices.js:33826:25)
  at emitJavaScriptWorker (typescriptServices.js:34068:32)
  at emitNodeWithoutSourceMap (typescriptServices.js:33860:17)
</code></pre></div>