Skip to content

Commit 42d2bd9

Browse files
feat: added unnamed class test
1 parent 2a3e4ce commit 42d2bd9

File tree

1 file changed

+3
-0
lines changed
  • test/valid-data/promise-extensions

1 file changed

+3
-0
lines changed

test/valid-data/promise-extensions/main.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ export type AndPromise = Promise<A> & { a: string };
1616

1717
export type AndLikePromise = PromiseLike<A> & { a: string };
1818

19+
// Should not be present
20+
export default class extends Promise<A> {}
21+
1922
export class LikeClass implements PromiseLike<A> {
2023
then<TResult1 = A, TResult2 = never>(
2124
onfulfilled?: ((value: A) => TResult1 | PromiseLike<TResult1>) | null | undefined,

0 commit comments

Comments
 (0)