mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-12-15 08:20:53 -06:00
Update test comments to match property names
This commit is contained in:
parent
41eabbc3d9
commit
e09533d19d
@ -10,12 +10,12 @@ tests/cases/compiler/extendFromAny.ts(9,10): error TS2339: Property 'length' doe
|
||||
}
|
||||
|
||||
let c = new C();
|
||||
c.known.length; // error, 'real' has no 'length' property
|
||||
c.known.length; // error, 'known' has no 'length' property
|
||||
~~~~~~
|
||||
!!! error TS2339: Property 'length' does not exist on type 'number'.
|
||||
C.sknown.length; // error, 'sreal' has no 'length' property
|
||||
C.sknown.length; // error, 'sknown' has no 'length' property
|
||||
~~~~~~
|
||||
!!! error TS2339: Property 'length' does not exist on type 'number'.
|
||||
c.unknown.length; // ok, fake: any
|
||||
C.sunknown.length; // ok: sfake: any
|
||||
c.unknown.length; // ok, unknown: any
|
||||
C.sunknown.length; // ok: sunknown: any
|
||||
|
||||
@ -6,10 +6,10 @@ class C extends Base {
|
||||
}
|
||||
|
||||
let c = new C();
|
||||
c.known.length; // error, 'real' has no 'length' property
|
||||
C.sknown.length; // error, 'sreal' has no 'length' property
|
||||
c.unknown.length; // ok, fake: any
|
||||
C.sunknown.length; // ok: sfake: any
|
||||
c.known.length; // error, 'known' has no 'length' property
|
||||
C.sknown.length; // error, 'sknown' has no 'length' property
|
||||
c.unknown.length; // ok, unknown: any
|
||||
C.sunknown.length; // ok: sunknown: any
|
||||
|
||||
|
||||
//// [extendFromAny.js]
|
||||
@ -34,7 +34,7 @@ var C = (function (_super) {
|
||||
}(Base));
|
||||
C.sknown = 2;
|
||||
var c = new C();
|
||||
c.known.length; // error, 'real' has no 'length' property
|
||||
C.sknown.length; // error, 'sreal' has no 'length' property
|
||||
c.unknown.length; // ok, fake: any
|
||||
C.sunknown.length; // ok: sfake: any
|
||||
c.known.length; // error, 'known' has no 'length' property
|
||||
C.sknown.length; // error, 'sknown' has no 'length' property
|
||||
c.unknown.length; // ok, unknown: any
|
||||
C.sunknown.length; // ok: sunknown: any
|
||||
|
||||
@ -5,7 +5,7 @@ class C extends Base {
|
||||
}
|
||||
|
||||
let c = new C();
|
||||
c.known.length; // error, 'real' has no 'length' property
|
||||
C.sknown.length; // error, 'sreal' has no 'length' property
|
||||
c.unknown.length; // ok, fake: any
|
||||
C.sunknown.length; // ok: sfake: any
|
||||
c.known.length; // error, 'known' has no 'length' property
|
||||
C.sknown.length; // error, 'sknown' has no 'length' property
|
||||
c.unknown.length; // ok, unknown: any
|
||||
C.sunknown.length; // ok: sunknown: any
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user