2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/dottedSymbolResolution1.ts ===
interface JQuery {
>JQuery : JQuery
find(selector: string): JQuery;
>find : (selector: string) => JQuery
>selector : string
>JQuery : JQuery
}
interface JQueryStatic {
>JQueryStatic : JQueryStatic
(selector: string): JQuery;
>selector : string
>JQuery : JQuery
(object: JQuery): JQuery;
>object : JQuery
>JQuery : JQuery
>JQuery : JQuery
}
class Base { foo() { } }
>Base : Base
>foo : () => void
function each(collection: string, callback: (indexInArray: any, valueOfElement: any) => any): any;
2014-08-28 21:52:44 +02:00
>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
>collection : string
>callback : (indexInArray: any, valueOfElement: any) => any
>indexInArray : any
>valueOfElement : any
function each(collection: JQuery, callback: (indexInArray: number, valueOfElement: Base) => any): any;
2014-08-28 21:52:44 +02:00
>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
>collection : JQuery
>JQuery : JQuery
>callback : (indexInArray: number, valueOfElement: Base) => any
>indexInArray : number
>valueOfElement : Base
>Base : Base
function each(collection: any, callback: (indexInArray: any, valueOfElement: any) => any): any {
2014-08-28 21:52:44 +02:00
>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
>collection : any
>callback : (indexInArray: any, valueOfElement: any) => any
>indexInArray : any
>valueOfElement : any
return null;
}
function _setBarAndText(): void {
2014-08-28 21:52:44 +02:00
>_setBarAndText : () => void
2014-08-15 23:33:16 +02:00
var x: JQuery, $: JQueryStatic
>x : JQuery
>JQuery : JQuery
>$ : JQueryStatic
>JQueryStatic : JQueryStatic
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
2014-08-28 21:52:44 +02:00
>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
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
>$('') : JQuery
>$ : JQueryStatic
thisBar = $this.find(".fx-usagebars-calloutbar-this"); // bug lead to 'could not find dotted symbol' here
>thisBar : JQuery
>$this.find(".fx-usagebars-calloutbar-this") : JQuery
>$this.find : (selector: string) => JQuery
>$this : JQuery
>find : (selector: string) => JQuery
} );
}