Skip to content

Commit 95dad14

Browse files
author
Yui T
committed
Update baselines
1 parent 18e7240 commit 95dad14

9 files changed

+72
-135
lines changed

tests/baselines/reference/constructableDecoratorOnClass01.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ var CtorDtor = (function () {
2323
var C = (function () {
2424
function C() {
2525
}
26-
C = __decorate([
27-
CtorDtor
28-
], C);
2926
return C;
3027
}());
28+
C = __decorate([
29+
CtorDtor
30+
], C);

tests/baselines/reference/noImplicitAnyMissingGetAccessor.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,6 @@ var __extends = (this && this.__extends) || function (d, b) {
2121
var Parent = (function () {
2222
function Parent() {
2323
}
24-
Object.defineProperty(Parent.prototype, "message", {
25-
set: function (str) { },
26-
enumerable: true,
27-
configurable: true
28-
});
2924
return Parent;
3025
}());
3126
var Child = (function (_super) {

tests/baselines/reference/noImplicitAnyMissingSetAccessor.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,6 @@ var __extends = (this && this.__extends) || function (d, b) {
2020
var Parent = (function () {
2121
function Parent() {
2222
}
23-
Object.defineProperty(Parent.prototype, "message", {
24-
get: function () { },
25-
enumerable: true,
26-
configurable: true
27-
});
2823
return Parent;
2924
}());
3025
var Child = (function (_super) {
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/mod1.ts(2,17): error TS6131: Cannot compile modules using option 'out' unless the '--module' flag is 'amd' or 'system'.
2+
3+
4+
==== /mod2.ts (0 errors) ====
5+
6+
import {foo} from "./mod1";
7+
export const bar = foo();
8+
==== /types/lib/index.d.ts (0 errors) ====
9+
10+
11+
12+
interface Lib { x }
13+
14+
==== /mod1.ts (1 errors) ====
15+
16+
export function foo(): Lib { return {x: 1} }
17+
~~~
18+
!!! error TS6131: Cannot compile modules using option 'out' unless the '--module' flag is 'amd' or 'system'.
19+

tests/baselines/reference/typeReferenceDirectives11.js

Lines changed: 0 additions & 36 deletions
This file was deleted.

tests/baselines/reference/typeReferenceDirectives11.trace.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
[
22
"======== Resolving module './mod1' from '/mod2.ts'. ========",
3-
"Module resolution kind is not specified, using 'Classic'.",
3+
"Module resolution kind is not specified, using 'NodeJs'.",
4+
"Loading module as file / folder, candidate module location '/mod1'.",
45
"File '/mod1.ts' exist - use it as a name resolution result.",
6+
"Resolving real path for '/mod1.ts', result '/mod1.ts'",
57
"======== Module name './mod1' was successfully resolved to '/mod1.ts'. ========",
68
"======== Resolving type reference directive 'lib', containing file '/__inferred type names__.ts', root directory '/types'. ========",
79
"Resolving with primary search path '/types'",
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
/main.ts(1,14): error TS6131: Cannot compile modules using option 'out' unless the '--module' flag is 'amd' or 'system'.
2+
3+
4+
==== /mod2.ts (0 errors) ====
5+
import { Cls } from "./main";
6+
import "./mod1";
7+
8+
export const cls = Cls;
9+
export const foo = new Cls().foo();
10+
export const bar = Cls.bar();
11+
==== /types/lib/index.d.ts (0 errors) ====
12+
13+
14+
15+
interface Lib { x }
16+
17+
==== /main.ts (1 errors) ====
18+
export class Cls {
19+
~~~
20+
!!! error TS6131: Cannot compile modules using option 'out' unless the '--module' flag is 'amd' or 'system'.
21+
x
22+
}
23+
24+
==== /mod1.ts (0 errors) ====
25+
/// <reference types="lib" />
26+
27+
import {Cls} from "./main";
28+
Cls.prototype.foo = function() { return undefined; }
29+
30+
declare module "./main" {
31+
interface Cls {
32+
foo(): Lib;
33+
}
34+
namespace Cls {
35+
function bar(): Lib;
36+
}
37+
}
38+

tests/baselines/reference/typeReferenceDirectives12.js

Lines changed: 0 additions & 82 deletions
This file was deleted.

tests/baselines/reference/typeReferenceDirectives12.trace.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,26 @@
11
[
22
"======== Resolving module './main' from '/mod2.ts'. ========",
3-
"Module resolution kind is not specified, using 'Classic'.",
3+
"Module resolution kind is not specified, using 'NodeJs'.",
4+
"Loading module as file / folder, candidate module location '/main'.",
45
"File '/main.ts' exist - use it as a name resolution result.",
6+
"Resolving real path for '/main.ts', result '/main.ts'",
57
"======== Module name './main' was successfully resolved to '/main.ts'. ========",
68
"======== Resolving module './mod1' from '/mod2.ts'. ========",
7-
"Module resolution kind is not specified, using 'Classic'.",
9+
"Module resolution kind is not specified, using 'NodeJs'.",
10+
"Loading module as file / folder, candidate module location '/mod1'.",
811
"File '/mod1.ts' exist - use it as a name resolution result.",
12+
"Resolving real path for '/mod1.ts', result '/mod1.ts'",
913
"======== Module name './mod1' was successfully resolved to '/mod1.ts'. ========",
1014
"======== Resolving type reference directive 'lib', containing file '/mod1.ts', root directory '/types'. ========",
1115
"Resolving with primary search path '/types'",
1216
"File '/types/lib/package.json' does not exist.",
1317
"File '/types/lib/index.d.ts' exist - use it as a name resolution result.",
1418
"======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ========",
1519
"======== Resolving module './main' from '/mod1.ts'. ========",
16-
"Module resolution kind is not specified, using 'Classic'.",
20+
"Module resolution kind is not specified, using 'NodeJs'.",
21+
"Loading module as file / folder, candidate module location '/main'.",
1722
"File '/main.ts' exist - use it as a name resolution result.",
23+
"Resolving real path for '/main.ts', result '/main.ts'",
1824
"======== Module name './main' was successfully resolved to '/main.ts'. ========",
1925
"======== Resolving type reference directive 'lib', containing file '/__inferred type names__.ts', root directory '/types'. ========",
2026
"Resolving with primary search path '/types'",

0 commit comments

Comments
 (0)