Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return argument not colored properly if multiline #1002

Open
alexr00 opened this issue Dec 5, 2023 · 0 comments
Open

Return argument not colored properly if multiline #1002

alexr00 opened this issue Dec 5, 2023 · 0 comments

Comments

@alexr00
Copy link
Member

alexr00 commented Dec 5, 2023

Type: Bug

When putting this into a TypeScript file:

type MyType<T> = { func: T };

function AFunction<T>(arg: T): MyType<T> {
    return { func: arg };
}

const x = AFunction<(arg: string) => unknown>(() => {});
const y = AFunction<
    (arg: string) => unknown
>(() => {});

The first unknown is colored but the second unknown is not for some reason.

Originally posted by @PythonCoderAS in microsoft/vscode#199861

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant