2014-11-19 23:07:25 +01:00
tests/cases/compiler/methodInAmbientClass1.ts(2,12): error TS2355: A function whose declared type is neither 'void' nor 'any' must return a value or consist of a single 'throw' statement.
2014-12-17 04:30:08 +01:00
tests/cases/compiler/methodInAmbientClass1.ts(2,20): error TS1184: An implementation cannot be declared in ambient contexts.
2014-11-19 23:07:25 +01:00
==== tests/cases/compiler/methodInAmbientClass1.ts (2 errors) ====
declare class Foo {
fn(): boolean {
~~~~~~~
!!! error TS2355: A function whose declared type is neither 'void' nor 'any' must return a value or consist of a single 'throw' statement.
2014-12-17 00:56:56 +01:00
~
2014-12-17 04:30:08 +01:00
!!! error TS1184: An implementation cannot be declared in ambient contexts.
2014-11-19 23:07:25 +01:00
}
}