@@ -7,30 +7,30 @@ var mod = require('./mod');
77>'./mod' : "./mod"
88
99var a = new mod.A()
10- >a : { a: number; } & { [x: string]: any; m(n: number): number; }
11- >new mod.A() : { a: number; } & { [x: string]: any; m(n: number): number; }
12- >mod.A : () => void
10+ >a : A & { [x: string]: any; m(n: number): number; }
11+ >new mod.A() : A & { [x: string]: any; m(n: number): number; }
12+ >mod.A : typeof A
1313>mod : typeof import("tests/cases/conformance/salsa/mod")
14- >A : () => void
14+ >A : typeof A
1515
1616var b = new mod.B()
17- >b : { b: number; } & { [x: string]: any; m(n: number): number; }
18- >new mod.B() : { b: number; } & { [x: string]: any; m(n: number): number; }
19- >mod.B : () => void
17+ >b : B & { [x: string]: any; m(n: number): number; }
18+ >new mod.B() : B & { [x: string]: any; m(n: number): number; }
19+ >mod.B : typeof B
2020>mod : typeof import("tests/cases/conformance/salsa/mod")
21- >B : () => void
21+ >B : typeof B
2222
2323a.m('nope')
2424>a.m('nope') : number
2525>a.m : (n: number) => number
26- >a : { a: number; } & { [x: string]: any; m(n: number): number; }
26+ >a : A & { [x: string]: any; m(n: number): number; }
2727>m : (n: number) => number
2828>'nope' : "nope"
2929
3030b.m('not really')
3131>b.m('not really') : number
3232>b.m : (n: number) => number
33- >b : { b: number; } & { [x: string]: any; m(n: number): number; }
33+ >b : B & { [x: string]: any; m(n: number): number; }
3434>m : (n: number) => number
3535>'not really' : "not really"
3636
@@ -45,8 +45,8 @@ declare var exports: any;
4545=== tests/cases/conformance/salsa/mod.js ===
4646/// <reference path='./types.d.ts'/>
4747var A = function() {
48- >A : () => void
49- >function() { this.a = 1} : () => void
48+ >A : typeof A
49+ >function() { this.a = 1} : typeof A
5050
5151 this.a = 1
5252>this.a = 1 : 1
@@ -56,8 +56,8 @@ var A = function() {
5656>1 : 1
5757}
5858var B = function() {
59- >B : () => void
60- >function() { this.b = 2} : () => void
59+ >B : typeof B
60+ >function() { this.b = 2} : typeof B
6161
6262 this.b = 2
6363>this.b = 2 : 2
@@ -67,27 +67,27 @@ var B = function() {
6767>2 : 2
6868}
6969exports.A = A
70- >exports.A = A : () => void
71- >exports.A : () => void
70+ >exports.A = A : typeof A
71+ >exports.A : typeof A
7272>exports : typeof import("tests/cases/conformance/salsa/mod")
73- >A : () => void
74- >A : () => void
73+ >A : typeof A
74+ >A : typeof A
7575
7676exports.B = B
77- >exports.B = B : () => void
78- >exports.B : () => void
77+ >exports.B = B : typeof B
78+ >exports.B : typeof B
7979>exports : typeof import("tests/cases/conformance/salsa/mod")
80- >B : () => void
81- >B : () => void
80+ >B : typeof B
81+ >B : typeof B
8282
8383A.prototype = B.prototype = {
8484>A.prototype = B.prototype = { /** @param {number} n */ m(n) { return n + 1 }} : { [x: string]: any; m(n: number): number; }
8585>A.prototype : any
86- >A : () => void
86+ >A : typeof A
8787>prototype : any
8888>B.prototype = { /** @param {number} n */ m(n) { return n + 1 }} : { [x: string]: any; m(n: number): number; }
8989>B.prototype : any
90- >B : () => void
90+ >B : typeof B
9191>prototype : any
9292>{ /** @param {number} n */ m(n) { return n + 1 }} : { [x: string]: any; m(n: number): number; }
9393
0 commit comments