19 lines
No EOL
454 B
Text
19 lines
No EOL
454 B
Text
tests/cases/compiler/undeclaredMethod.ts(11,3): error TS2339: Property 'saltbar' does not exist on type 'C'.
|
|
|
|
|
|
==== tests/cases/compiler/undeclaredMethod.ts (1 errors) ====
|
|
|
|
module M {
|
|
export class C {
|
|
public salt() {}
|
|
}
|
|
}
|
|
|
|
var c:M.C = new M.C();
|
|
|
|
c.salt(); // cool
|
|
c.saltbar(); // crash
|
|
~~~~~~~
|
|
!!! error TS2339: Property 'saltbar' does not exist on type 'C'.
|
|
|
|
|