mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-07 05:41:22 -06:00
Add tests
This commit is contained in:
parent
f93f8d32c4
commit
cd646dab7e
@ -0,0 +1,7 @@
|
||||
// @strict: true
|
||||
|
||||
// Repro from #30720
|
||||
|
||||
type Maybe<T> = T | undefined;
|
||||
declare function concatMaybe<T>(...args: (Maybe<T> | Maybe<T>[])[]): T[];
|
||||
concatMaybe([1, 2, 3], 4);
|
||||
Loading…
x
Reference in New Issue
Block a user