Skip to content
New issue

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

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

Already on GitHub? # to your account

C#->VB #825

Closed
Studtrucker opened this issue Feb 3, 2022 · 2 comments
Closed

C#->VB #825

Studtrucker opened this issue Feb 3, 2022 · 2 comments

Comments

@Studtrucker
Copy link

Studtrucker commented Feb 3, 2022

Steps to reproduce

Input Code

private bool ValidateInput()
    {
      return !Validation.GetHasError(txtFirstName)
           && !Validation.GetHasError(txtImagePath);
    }

Converted Code

''' Cannot convert GlobalStatementSyntax, CONVERSION ERROR: Conversion for GlobalStatement not implemented, please report this issue in 'private bool ValidateInput(...' at character 4
''' 
''' 
''' Input:
'''     private bool ValidateInput()
'''     {
'''       return !Validation.GetHasError(txtFirstName)
'''            && !Validation.GetHasError(txtImagePath);
'''     }
''' 
@GrahamTheCoder
Copy link
Member

Thanks for the report. I'll investigate why the converter doesn't detect this automatically. In the meantime as a workaround, just put the method inside a class before conversion and it will work.

GrahamTheCoder added a commit that referenced this issue Feb 6, 2022
@GrahamTheCoder
Copy link
Member

Next version will contain a fix for this

GrahamTheCoder added a commit that referenced this issue Feb 19, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants