12 lines
450 B
Plaintext
12 lines
450 B
Plaintext
|
==== tests/cases/compiler/noImplicitAnyInBareInterface.ts (2 errors) ====
|
||
|
|
||
|
interface Entry {
|
||
|
// Should return error for implicit any on `new` and `foo`.
|
||
|
new ();
|
||
|
~~~~~~~
|
||
|
!!! Construct signature, which lacks return-type annotation, implicitly has an 'any' return type.
|
||
|
few() : any;
|
||
|
foo();
|
||
|
~~~~~~
|
||
|
!!! 'foo', which lacks return-type annotation, implicitly has an 'any' return type.
|
||
|
}
|