mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-30 01:04:49 -05:00
Merge branch 'master' into typeAssertionInitializers
This commit is contained in:
1027
tests/baselines/reference/complexNarrowingWithAny.js
Normal file
1027
tests/baselines/reference/complexNarrowingWithAny.js
Normal file
File diff suppressed because it is too large
Load Diff
2304
tests/baselines/reference/complexNarrowingWithAny.symbols
Normal file
2304
tests/baselines/reference/complexNarrowingWithAny.symbols
Normal file
File diff suppressed because it is too large
Load Diff
3043
tests/baselines/reference/complexNarrowingWithAny.types
Normal file
3043
tests/baselines/reference/complexNarrowingWithAny.types
Normal file
File diff suppressed because it is too large
Load Diff
@@ -23,3 +23,4 @@ var A = (function () {
|
||||
};
|
||||
return A;
|
||||
}());
|
||||
export default A;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -15,4 +15,5 @@ var C = (function () {
|
||||
C.prototype.method = function () { };
|
||||
return C;
|
||||
}());
|
||||
export default C;
|
||||
C.s = 0;
|
||||
|
||||
@@ -43,7 +43,7 @@ n=XDate.UTC(1964,2,1);
|
||||
declare;
|
||||
module;
|
||||
{
|
||||
var XDate = (function () {
|
||||
export var XDate = (function () {
|
||||
function XDate() {
|
||||
}
|
||||
return XDate;
|
||||
|
||||
13
tests/baselines/reference/generatorES6InAMDModule.js
Normal file
13
tests/baselines/reference/generatorES6InAMDModule.js
Normal 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;
|
||||
});
|
||||
@@ -0,0 +1,6 @@
|
||||
=== tests/cases/compiler/generatorES6InAMDModule.ts ===
|
||||
export function* foo() {
|
||||
>foo : Symbol(foo, Decl(generatorES6InAMDModule.ts, 0, 0))
|
||||
|
||||
yield
|
||||
}
|
||||
7
tests/baselines/reference/generatorES6InAMDModule.types
Normal file
7
tests/baselines/reference/generatorES6InAMDModule.types
Normal file
@@ -0,0 +1,7 @@
|
||||
=== tests/cases/compiler/generatorES6InAMDModule.ts ===
|
||||
export function* foo() {
|
||||
>foo : () => IterableIterator<any>
|
||||
|
||||
yield
|
||||
>yield : any
|
||||
}
|
||||
@@ -44,6 +44,7 @@
|
||||
}
|
||||
return C;
|
||||
}());
|
||||
export default C;
|
||||
function bee() { }
|
||||
import I2 = require("foo");
|
||||
import * as Foo from "ambient";
|
||||
|
||||
@@ -44,6 +44,7 @@ function blah() {
|
||||
}
|
||||
return C;
|
||||
}());
|
||||
export default C;
|
||||
function bee() { }
|
||||
import I2 = require("foo");
|
||||
import * as Foo from "ambient";
|
||||
|
||||
Reference in New Issue
Block a user