2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/privacyCheckAnonymousFunctionParameter.ts ===
|
|
|
|
export var x = 1; // Makes this an external module
|
|
|
|
>x : number
|
|
|
|
|
|
|
|
interface Iterator<T> {
|
|
|
|
>Iterator : Iterator<T>
|
|
|
|
>T : T
|
|
|
|
}
|
|
|
|
|
|
|
|
module Query {
|
2014-08-28 21:40:58 +02:00
|
|
|
>Query : typeof Query
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export function fromDoWhile<T>(doWhile: (test: Iterator<T>) => boolean): Iterator<T> {
|
2014-08-28 21:52:44 +02:00
|
|
|
>fromDoWhile : <T>(doWhile: (test: Iterator<T>) => boolean) => Iterator<T>
|
2014-08-15 23:33:16 +02:00
|
|
|
>T : T
|
|
|
|
>doWhile : (test: Iterator<T>) => boolean
|
|
|
|
>test : Iterator<T>
|
2014-08-19 04:56:03 +02:00
|
|
|
>Iterator : Iterator<T>
|
2014-08-15 23:33:16 +02:00
|
|
|
>T : T
|
2014-08-19 04:56:03 +02:00
|
|
|
>Iterator : Iterator<T>
|
2014-08-15 23:33:16 +02:00
|
|
|
>T : T
|
|
|
|
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
|
|
|
function fromOrderBy() {
|
2014-08-28 21:52:44 +02:00
|
|
|
>fromOrderBy : () => Iterator<{}>
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
return fromDoWhile(test => {
|
2014-08-22 03:39:46 +02:00
|
|
|
>fromDoWhile(test => { return true; }) : Iterator<{}>
|
2014-08-28 21:52:44 +02:00
|
|
|
>fromDoWhile : <T>(doWhile: (test: Iterator<T>) => boolean) => Iterator<T>
|
2014-08-22 03:39:46 +02:00
|
|
|
>test => { return true; } : (test: Iterator<{}>) => boolean
|
2014-08-15 23:33:16 +02:00
|
|
|
>test : Iterator<{}>
|
|
|
|
|
|
|
|
return true;
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|