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

@vue-ignore before defineProps generic params breaks compilation #12254

Open
LoTwT opened this issue Oct 24, 2024 · 0 comments
Open

@vue-ignore before defineProps generic params breaks compilation #12254

LoTwT opened this issue Oct 24, 2024 · 0 comments

Comments

@LoTwT
Copy link

LoTwT commented Oct 24, 2024

Vue version

3.5.12

Link to minimal reproduction

https://play.vuejs.org/#eNq9k0tTwjAQx79KJgdfo3RsPWF9gMNBD8qox15CWWqwTTJJisww/e5uUnkjDBy4ZbO/ff2zmdCWUo1RCbRJY5NqriwxYEt1nwheKKkteZKFuiYDLQty2gi85QJOb5eIcIkINxDREhFNiTioy2JBNCwUKmcW0CIkrksHcyNcNCJvxMFCDL2k1qRSDHjWGBopcKqJ4xOaYgDPQb8py6UwCW0S73E+lufy58XfWV3C5fQ+/YL0e8P90IzdXUK7GgzoESR05rNMZ2Brd+fjFcZ4njkL2S9zpLc438HIvHQ91li7FH1se4Hz3T57XbnIPk1nbEGY6VCuUUdWnk8oquy0+m/0ebtR48bHJaJCFWfPvLoXJGciu8NAzON2RFjQA5YCadVJ2UOT9KTMgeFzYrJFpF0jvTWkDwMuoKulMnFwQR6x7hXPhNRALgLMfELa92fn23elz0f+8Hd07319xXDUCWGkquJgI9DzQG8JmJ5WN2u22EfXxCmwrstBmoS7NAn31sR/5aNrskmRgzcl2qVKtIcq1S/etMLp

Steps to reproduce

see the render result

What is expected?

@vue-ignore before defineProps generic params can work

What is actually happening?

defineProps</* @vue-ignore */ A & B>() breaks boolean casting in interface B
defineProps<A & /* @vue-ignore */ B>() works well
defineProps<& /* @vue-ignore */ A & B>() works well, but some rules in the VSCode may format it that will remove the first &

System Info

No response

Any additional comments?

No response

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

No branches or pull requests

2 participants