TypeScript/tests/baselines/reference/objectLiteralParameterResolution.errors.txt

37 lines
1.9 KiB
Plaintext
Raw Normal View History

tests/cases/compiler/objectLiteralParameterResolution.ts(9,14): error TS2304: Cannot find name 'wrapSuccessCallback'.
tests/cases/compiler/objectLiteralParameterResolution.ts(9,34): error TS2304: Cannot find name 'requestContext'.
tests/cases/compiler/objectLiteralParameterResolution.ts(9,50): error TS2304: Cannot find name 'callback'.
tests/cases/compiler/objectLiteralParameterResolution.ts(10,12): error TS2304: Cannot find name 'wrapErrorCallback'.
tests/cases/compiler/objectLiteralParameterResolution.ts(10,30): error TS2304: Cannot find name 'requestContext'.
tests/cases/compiler/objectLiteralParameterResolution.ts(10,46): error TS2304: Cannot find name 'errorCallback'.
2014-07-13 01:04:16 +02:00
==== tests/cases/compiler/objectLiteralParameterResolution.ts (6 errors) ====
interface Foo{
extend<T>(target: T, ...objs: any[]): T;
extend<T>(deep: boolean, target: T, ...objs: any[]): T;
}
declare var $: Foo;
var s = $.extend({
type: "GET" ,
data: "data" ,
success: wrapSuccessCallback(requestContext, callback) ,
~~~~~~~~~~~~~~~~~~~
!!! error TS2304: Cannot find name 'wrapSuccessCallback'.
2014-07-13 01:04:16 +02:00
~~~~~~~~~~~~~~
!!! error TS2304: Cannot find name 'requestContext'.
2014-07-13 01:04:16 +02:00
~~~~~~~~
!!! error TS2304: Cannot find name 'callback'.
2014-07-13 01:04:16 +02:00
error: wrapErrorCallback(requestContext, errorCallback) ,
~~~~~~~~~~~~~~~~~
!!! error TS2304: Cannot find name 'wrapErrorCallback'.
2014-07-13 01:04:16 +02:00
~~~~~~~~~~~~~~
!!! error TS2304: Cannot find name 'requestContext'.
2014-07-13 01:04:16 +02:00
~~~~~~~~~~~~~
!!! error TS2304: Cannot find name 'errorCallback'.
2014-07-13 01:04:16 +02:00
dataType: "json" ,
converters: { "text json": "" },
traditional: true ,
timeout: 12,
}, "");