TypeScript/tests/cases/compiler/nonexistentPropertyOnUnion.ts
2018-04-05 21:39:33 +02:00

4 lines
68 B
TypeScript

function f(x: string | Promise<string>) {
x.toLowerCase();
}