36 lines
No EOL
1.1 KiB
Text
36 lines
No EOL
1.1 KiB
Text
==== tests/cases/compiler/getAccessorWithImpliedReturnTypeAndFunctionClassMerge.ts (4 errors) ====
|
|
declare function _<T>(value: Array<T>): _<T>;
|
|
~~~~
|
|
!!! Cannot find name '_'.
|
|
declare function _<T>(value: T): _<T>;
|
|
~~~~
|
|
!!! Cannot find name '_'.
|
|
|
|
declare module _ {
|
|
export function each<T>(
|
|
//list: List<T>,
|
|
//iterator: ListIterator<T, void>,
|
|
context?: any): void;
|
|
|
|
interface ListIterator<T, TResult> {
|
|
(value: T, index: number, list: T[]): TResult;
|
|
}
|
|
}
|
|
|
|
declare class _<T> {
|
|
~
|
|
!!! Duplicate identifier '_'.
|
|
each(iterator: _.ListIterator<T, void>, context?: any): void;
|
|
}
|
|
|
|
module MyModule {
|
|
export class MyClass {
|
|
public get myGetter() {
|
|
~~~~~~~~
|
|
!!! Accessors are only available when targeting ECMAScript 5 and higher.
|
|
var obj:any = {};
|
|
|
|
return obj;
|
|
}
|
|
}
|
|
} |