mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
21 lines
609 B
TypeScript
21 lines
609 B
TypeScript
//// [tests/cases/conformance/functions/functionOverloadErrorsSyntax.ts] ////
|
|
|
|
//// [functionOverloadErrorsSyntax.ts]
|
|
//Function overload signature with optional parameter followed by non-optional parameter
|
|
function fn4a(x?: number, y: string);
|
|
function fn4a() { }
|
|
|
|
function fn4b(n: string, x?: number, y: string);
|
|
function fn4b() { }
|
|
|
|
//Function overload signature with rest param followed by non-optional parameter
|
|
function fn5(x: string, ...y: any[], z: string);
|
|
function fn5() { }
|
|
|
|
|
|
//// [functionOverloadErrorsSyntax.js]
|
|
"use strict";
|
|
function fn4a() { }
|
|
function fn4b() { }
|
|
function fn5() { }
|