Merge branch 'master' into typeAssertionInitializers

This commit is contained in:
Anders Hejlsberg
2016-09-12 18:04:39 -07:00
18 changed files with 7004 additions and 6 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -23,3 +23,4 @@ var A = (function () {
};
return A;
}());
export default A;

View File

@@ -27,7 +27,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var C = (function () {
export var C = (function () {
function C() {
this.p = 1;
}

View File

@@ -15,4 +15,5 @@ var C = (function () {
C.prototype.method = function () { };
return C;
}());
export default C;
C.s = 0;

View File

@@ -43,7 +43,7 @@ n=XDate.UTC(1964,2,1);
declare;
module;
{
var XDate = (function () {
export var XDate = (function () {
function XDate() {
}
return XDate;

View File

@@ -0,0 +1,13 @@
//// [generatorES6InAMDModule.ts]
export function* foo() {
yield
}
//// [generatorES6InAMDModule.js]
define(["require", "exports"], function (require, exports) {
"use strict";
function* foo() {
yield;
}
exports.foo = foo;
});

View File

@@ -0,0 +1,6 @@
=== tests/cases/compiler/generatorES6InAMDModule.ts ===
export function* foo() {
>foo : Symbol(foo, Decl(generatorES6InAMDModule.ts, 0, 0))
yield
}

View File

@@ -0,0 +1,7 @@
=== tests/cases/compiler/generatorES6InAMDModule.ts ===
export function* foo() {
>foo : () => IterableIterator<any>
yield
>yield : any
}

View File

@@ -44,6 +44,7 @@
}
return C;
}());
export default C;
function bee() { }
import I2 = require("foo");
import * as Foo from "ambient";

View File

@@ -44,6 +44,7 @@ function blah() {
}
return C;
}());
export default C;
function bee() { }
import I2 = require("foo");
import * as Foo from "ambient";