diff --git a/source/test/fixtures/expect-error/generics/index.d.ts b/source/test/fixtures/expect-error/generics/index.d.ts index 487b40ec..20d6a304 100644 --- a/source/test/fixtures/expect-error/generics/index.d.ts +++ b/source/test/fixtures/expect-error/generics/index.d.ts @@ -6,3 +6,5 @@ export default one; export function two(foo: T1): T1; export function two(foo: T1, bar: T2): T3; + +export const inferrable: () => T; diff --git a/source/test/fixtures/expect-error/generics/index.test-d.ts b/source/test/fixtures/expect-error/generics/index.test-d.ts index 284689dc..d4f1609e 100644 --- a/source/test/fixtures/expect-error/generics/index.test-d.ts +++ b/source/test/fixtures/expect-error/generics/index.test-d.ts @@ -1,8 +1,12 @@ -import {expectError} from '../../../..'; -import one, {two} from '.'; +import {expectError, expectType} from '../../../..'; +import one, {two, inferrable} from '.'; expectError(one(true, true)); expectError(one(1, 2)); expectError(two(1, 'bar')); + +// expectError(expectType(inferrable())); + +// expectError(expectType(inferrable()));