Amend baselines.
This commit is contained in:
parent
e174fe4f47
commit
7b43672ce0
|
@ -1,22 +1,24 @@
|
||||||
tests/cases/compiler/differentTypesWithSameName.ts(16,15): error TS2345: Argument of type 'variable' is not assignable to parameter of type 'm.variable'.
|
tests/cases/compiler/differentTypesWithSameName.ts(16,15): error TS2345: Argument of type 'variable' is not assignable to parameter of type 'm.variable'.
|
||||||
|
Property 's' is missing in type 'variable'.
|
||||||
|
|
||||||
==== tests/cases/compiler/differentTypesWithSameName.ts (1 errors) ====
|
|
||||||
module m {
|
==== tests/cases/compiler/differentTypesWithSameName.ts (1 errors) ====
|
||||||
export class variable{
|
module m {
|
||||||
s: string;
|
export class variable{
|
||||||
}
|
s: string;
|
||||||
export function doSomething(v: m.variable) {
|
}
|
||||||
|
export function doSomething(v: m.variable) {
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
class variable {
|
|
||||||
t: number;
|
class variable {
|
||||||
}
|
t: number;
|
||||||
|
}
|
||||||
|
|
||||||
var v: variable = new variable();
|
|
||||||
m.doSomething(v);
|
var v: variable = new variable();
|
||||||
~
|
m.doSomething(v);
|
||||||
!!! error TS2345: Argument of type 'variable' is not assignable to parameter of type 'm.variable'.
|
~
|
||||||
|
!!! error TS2345: Argument of type 'variable' is not assignable to parameter of type 'm.variable'.
|
||||||
|
!!! error TS2345: Property 's' is missing in type 'variable'.
|
|
@ -1,4 +1,4 @@
|
||||||
//// [differentTypesWithSameName.ts]
|
//// [differentTypesWithSameName.ts]
|
||||||
module m {
|
module m {
|
||||||
export class variable{
|
export class variable{
|
||||||
s: string;
|
s: string;
|
||||||
|
@ -14,25 +14,25 @@ class variable {
|
||||||
|
|
||||||
|
|
||||||
var v: variable = new variable();
|
var v: variable = new variable();
|
||||||
m.doSomething(v);
|
m.doSomething(v);
|
||||||
|
|
||||||
//// [differentTypesWithSameName.js]
|
//// [differentTypesWithSameName.js]
|
||||||
var m;
|
var m;
|
||||||
(function (m) {
|
(function (m) {
|
||||||
var variable = (function () {
|
var variable = (function () {
|
||||||
function variable() {
|
function variable() {
|
||||||
}
|
}
|
||||||
return variable;
|
return variable;
|
||||||
})();
|
})();
|
||||||
m.variable = variable;
|
m.variable = variable;
|
||||||
function doSomething(v) {
|
function doSomething(v) {
|
||||||
}
|
}
|
||||||
m.doSomething = doSomething;
|
m.doSomething = doSomething;
|
||||||
})(m || (m = {}));
|
})(m || (m = {}));
|
||||||
var variable = (function () {
|
var variable = (function () {
|
||||||
function variable() {
|
function variable() {
|
||||||
}
|
}
|
||||||
return variable;
|
return variable;
|
||||||
})();
|
})();
|
||||||
var v = new variable();
|
var v = new variable();
|
||||||
m.doSomething(v);
|
m.doSomething(v);
|
||||||
|
|
Loading…
Reference in a new issue