8 lines
No EOL
136 B
TypeScript
8 lines
No EOL
136 B
TypeScript
// @declaration: true
|
|
|
|
declare function f(x: (p: "foo" | "bar") => "foo");
|
|
|
|
f(y => {
|
|
const z = y = "foo";
|
|
return z;
|
|
}) |