mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
31 lines
1.1 KiB
Plaintext
31 lines
1.1 KiB
Plaintext
dottedSymbolResolution1.ts(21,10): error TS2454: Variable 'x' is used before being assigned.
|
|
|
|
|
|
==== dottedSymbolResolution1.ts (1 errors) ====
|
|
interface JQuery {
|
|
find(selector: string): JQuery;
|
|
}
|
|
|
|
interface JQueryStatic {
|
|
|
|
(selector: string): JQuery;
|
|
(object: JQuery): JQuery;
|
|
}
|
|
|
|
class Base { foo() { } }
|
|
|
|
function each(collection: string, callback: (indexInArray: any, valueOfElement: any) => any): any;
|
|
function each(collection: JQuery, callback: (indexInArray: number, valueOfElement: Base) => any): any;
|
|
function each(collection: any, callback: (indexInArray: any, valueOfElement: any) => any): any {
|
|
return null;
|
|
}
|
|
|
|
function _setBarAndText(): void {
|
|
var x: JQuery, $: JQueryStatic
|
|
each(x.find(" "), function () {
|
|
~
|
|
!!! error TS2454: Variable 'x' is used before being assigned.
|
|
var $this: JQuery = $(''),
|
|
thisBar = $this.find(".fx-usagebars-calloutbar-this"); // bug lead to 'could not find dotted symbol' here
|
|
} );
|
|
} |