TypeScript/tests/baselines/reference/dottedSymbolResolution1.types

91 lines
3.2 KiB
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/dottedSymbolResolution1.ts ===
interface JQuery {
>JQuery : JQuery
2014-08-15 23:33:16 +02:00
find(selector: string): JQuery;
>find : (selector: string) => JQuery
>selector : string
>JQuery : JQuery
2014-08-15 23:33:16 +02:00
}
interface JQueryStatic {
>JQueryStatic : JQueryStatic
2014-08-15 23:33:16 +02:00
(selector: string): JQuery;
>selector : string
>JQuery : JQuery
2014-08-15 23:33:16 +02:00
(object: JQuery): JQuery;
>object : JQuery
>JQuery : JQuery
>JQuery : JQuery
2014-08-15 23:33:16 +02:00
}
class Base { foo() { } }
>Base : Base
>foo : () => void
2014-08-15 23:33:16 +02:00
function each(collection: string, callback: (indexInArray: any, valueOfElement: any) => any): any;
>each : { (collection: string, callback: (indexInArray: any, valueOfElement: any) => any): any; (collection: JQuery, callback: (indexInArray: number, valueOfElement: Base) => any): any; }
>collection : string
>callback : (indexInArray: any, valueOfElement: any) => any
>indexInArray : any
>valueOfElement : any
2014-08-15 23:33:16 +02:00
function each(collection: JQuery, callback: (indexInArray: number, valueOfElement: Base) => any): any;
>each : { (collection: string, callback: (indexInArray: any, valueOfElement: any) => any): any; (collection: JQuery, callback: (indexInArray: number, valueOfElement: Base) => any): any; }
>collection : JQuery
>JQuery : JQuery
>callback : (indexInArray: number, valueOfElement: Base) => any
>indexInArray : number
>valueOfElement : Base
>Base : Base
2014-08-15 23:33:16 +02:00
function each(collection: any, callback: (indexInArray: any, valueOfElement: any) => any): any {
>each : { (collection: string, callback: (indexInArray: any, valueOfElement: any) => any): any; (collection: JQuery, callback: (indexInArray: number, valueOfElement: Base) => any): any; }
>collection : any
>callback : (indexInArray: any, valueOfElement: any) => any
>indexInArray : any
>valueOfElement : any
2014-08-15 23:33:16 +02:00
return null;
2015-04-13 21:36:11 +02:00
>null : null
2014-08-15 23:33:16 +02:00
}
function _setBarAndText(): void {
>_setBarAndText : () => void
2014-08-15 23:33:16 +02:00
var x: JQuery, $: JQueryStatic
>x : JQuery
>JQuery : JQuery
>$ : JQueryStatic
>JQueryStatic : JQueryStatic
2014-08-15 23:33:16 +02:00
each(x.find(" "), function () {
2014-08-22 03:39:46 +02:00
>each(x.find(" "), function () { var $this: JQuery = $(''), thisBar = $this.find(".fx-usagebars-calloutbar-this"); // bug lead to 'could not find dotted symbol' here } ) : any
>each : { (collection: string, callback: (indexInArray: any, valueOfElement: any) => any): any; (collection: JQuery, callback: (indexInArray: number, valueOfElement: Base) => any): any; }
2014-08-15 23:33:16 +02:00
>x.find(" ") : JQuery
>x.find : (selector: string) => JQuery
>x : JQuery
>find : (selector: string) => JQuery
2015-04-13 21:36:11 +02:00
>" " : string
2014-08-22 03:39:46 +02:00
>function () { var $this: JQuery = $(''), thisBar = $this.find(".fx-usagebars-calloutbar-this"); // bug lead to 'could not find dotted symbol' here } : () => void
2014-08-15 23:33:16 +02:00
var $this: JQuery = $(''),
>$this : JQuery
>JQuery : JQuery
2014-08-15 23:33:16 +02:00
>$('') : JQuery
>$ : JQueryStatic
2015-04-13 21:36:11 +02:00
>'' : string
2014-08-15 23:33:16 +02:00
thisBar = $this.find(".fx-usagebars-calloutbar-this"); // bug lead to 'could not find dotted symbol' here
>thisBar : JQuery
2014-08-15 23:33:16 +02:00
>$this.find(".fx-usagebars-calloutbar-this") : JQuery
>$this.find : (selector: string) => JQuery
>$this : JQuery
>find : (selector: string) => JQuery
2015-04-13 21:36:11 +02:00
>".fx-usagebars-calloutbar-this" : string
2014-08-15 23:33:16 +02:00
} );
}