2014-10-02 03:51:58 +02:00
|
|
|
/// <reference path="fourslash.ts"/>
|
|
|
|
|
|
|
|
////function overload1(a: string): boolean;
|
|
|
|
////function overload1(b: boolean): boolean;
|
|
|
|
////function overload1(x: any, b = (function overload() { return false })): boolean {
|
2014-10-04 00:53:35 +02:00
|
|
|
//// throw overload1;
|
2014-10-02 03:51:58 +02:00
|
|
|
////}
|
2014-10-04 00:53:35 +02:00
|
|
|
////function overload1(b: number): boolean;
|
|
|
|
////function overload1(f: typeof overload): boolean;
|
2014-10-02 03:51:58 +02:00
|
|
|
|
|
|
|
////function overload2(a: string): boolean;
|
|
|
|
////function overload2(b: boolean): boolean;
|
|
|
|
////function overload2(x: any, b = (function overload() { return false })): boolean {
|
2014-10-04 00:53:35 +02:00
|
|
|
//// function overload2(): boolean;
|
|
|
|
//// function overload2(x: any): boolean;
|
|
|
|
//// throw overload2;
|
2014-10-02 03:51:58 +02:00
|
|
|
////}
|
2014-10-04 00:53:35 +02:00
|
|
|
////function overload2(b: number): boolean;
|
|
|
|
////function overload2(f: typeof overload): boolean;
|
2014-10-02 03:51:58 +02:00
|
|
|
|
|
|
|
verify.navigationItemsListCount(1, "overload1", "exact");
|
2014-10-04 00:53:35 +02:00
|
|
|
verify.navigationItemsListCount(3, "overload2", "exact");
|
|
|
|
verify.navigationItemsListCount(4, "overload", "prefix");
|