Skip to content

Add support for instantiation expressions #951

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

Closed
cdbattags opened this issue Dec 29, 2022 · 2 comments
Closed

Add support for instantiation expressions #951

cdbattags opened this issue Dec 29, 2022 · 2 comments

Comments

@cdbattags
Copy link

cdbattags commented Dec 29, 2022

Version: 1.74.2
Commit: e8a3071ea4344d9d48ef8a4df2c097372b0c5161
Date: 2022-12-20T10:32:21.587Z (1 wk ago)
Electron: 19.1.8
Chromium: 102.0.5005.167
Node.js: 16.14.2
V8: 10.2.154.15-electron.0
OS: Darwin arm64 22.2.0
Sandboxed: No
OS Version: macOS 13.0.1

Code

const generic = <T,>(initial: T) => initial
type thing = <T extends object>(what: T) => ReturnType<typeof generic<T>>

Obviously this is a terrible example but mainly any time I see ReturnType<typeof something<T>> the angle bracket syntax highlighting is breaking.

image

@cdbattags
Copy link
Author

Hello, folks! Any update here?

@awmottaz
Copy link

I still have this issue. It can be seen using a simple example from the docs.

Version: 1.77.3
Commit: 704ed70d4fd1c6bd6342c436f1ede30d1cff4710
Date: 2023-04-12T09:41:48.638Z
Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 13_3_1) AppleWebKit/537.36 (KHTML, like Gecko) Code/1.77.3 Chrome/102.0.5005.196 Electron/19.1.11 Safari/537.36

Screenshot 2023-04-27 at 13 57 41

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

2 participants