2019-07-03 03:04:55 +02:00
|
|
|
async function fn(
|
2019-07-03 02:06:42 +02:00
|
|
|
a: number,
|
|
|
|
b: Promise<number>,
|
|
|
|
c: Promise<string[]>,
|
|
|
|
d: Promise<{ prop: string }>,
|
|
|
|
e: Promise<() => void>,
|
|
|
|
f: Promise<() => void> | (() => void),
|
|
|
|
g: Promise<{ new(): any }>
|
|
|
|
) {
|
|
|
|
// All errors
|
|
|
|
a | b;
|
|
|
|
b | a;
|
|
|
|
a + b;
|
|
|
|
a > b;
|
|
|
|
b++;
|
|
|
|
--b;
|
|
|
|
a === b;
|
2019-07-03 03:04:55 +02:00
|
|
|
[...c];
|
2019-07-03 02:06:42 +02:00
|
|
|
for (const s of c) {
|
2019-07-04 01:04:09 +02:00
|
|
|
fn(b, b, c, d, e, f, g);
|
2019-07-03 02:06:42 +02:00
|
|
|
d.prop;
|
|
|
|
}
|
2019-07-03 03:04:55 +02:00
|
|
|
for await (const s of c) {}
|
2019-07-03 02:06:42 +02:00
|
|
|
e();
|
|
|
|
f();
|
|
|
|
new g();
|
2019-07-03 18:33:03 +02:00
|
|
|
b();
|
2019-07-03 02:06:42 +02:00
|
|
|
}
|