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

Generated code references undefined nested delegate type variable #375

Closed
moriyalb opened this issue Sep 6, 2024 · 1 comment · Fixed by #376
Closed

Generated code references undefined nested delegate type variable #375

moriyalb opened this issue Sep 6, 2024 · 1 comment · Fixed by #376
Assignees
Labels
bug Something isn't working

Comments

@moriyalb
Copy link

moriyalb commented Sep 6, 2024

var type_jj_Jex_Runtime_DAdapter = new JSClassBuilder<object>("DAdapter") .AddProperty("JSRemoteCB", type_jj_Jex_Runtime_DAdapter_JSRemoteCB, JSPropertyAttributes.Static | JSPropertyAttributes.Enumerable)

\Debug\net8.0\generated\Microsoft.JavaScript.NodeApi.Generator\Microsoft.JavaScript.NodeApi.Generator.ModuleGenerator\DualJex.NodeApi.g.cs(34,32,34,71): error CS0103: 当前上下文中不存在名称“type_jj_Jex_Runtime_DAdapter_JSRemoteCB”

when I change to 0.8.3 , everything is ok.

@jasongin jasongin changed the title Auto Generated Code is mission type definitions in version 0.8.8 Generated code references undefined nested delegate type variable Sep 6, 2024
@jasongin
Copy link
Member

jasongin commented Sep 6, 2024

Thanks for the bug report. This is a regression related to nested delegate types. I just submitted PR #376 to fix it.

@jasongin jasongin self-assigned this Sep 6, 2024
@jasongin jasongin added the bug Something isn't working label Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants