mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
12 lines
295 B
TypeScript
12 lines
295 B
TypeScript
//// [tests/cases/compiler/excessPropertiesInOverloads.ts] ////
|
|
|
|
//// [excessPropertiesInOverloads.ts]
|
|
declare function fn(a: { x: string }): void;
|
|
declare function fn(a: { y: string }): void;
|
|
fn({ z: 3, a: 3 });
|
|
|
|
|
|
//// [excessPropertiesInOverloads.js]
|
|
"use strict";
|
|
fn({ z: 3, a: 3 });
|