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

VB -> C#: Exit property should become return #497

Closed
GrahamTheCoder opened this issue Jan 14, 2020 · 1 comment
Closed

VB -> C#: Exit property should become return #497

GrahamTheCoder opened this issue Jan 14, 2020 · 1 comment
Labels
compilation error A bug where the converted output won't compile output logic error A bug where the converted output behaves differently to the input code VB -> C# Specific to VB -> C# conversion

Comments

@GrahamTheCoder
Copy link
Member

Input code

Public Class Program
	Public Shared WriteOnly Property Prop()
		Set
			Exit Property
		End Set
	End Property
End Class

Erroneous output

public partial class Program
{
    public static object Prop
    {
        set
        {
            break;
        }
    }
}

Expected output

public partial class Program
{
    public static object Prop
    {
        set
        {
            return;
        }
    }
}

Details

  • 7.6 Web
  • Get properties will probably need the normal default value handling if not already present
@GrahamTheCoder GrahamTheCoder added VB -> C# Specific to VB -> C# conversion compilation error A bug where the converted output won't compile output logic error A bug where the converted output behaves differently to the input code labels Jan 14, 2020
@GrahamTheCoder
Copy link
Member Author

Could be an output logic error if it happened within a loop

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compilation error A bug where the converted output won't compile output logic error A bug where the converted output behaves differently to the input code VB -> C# Specific to VB -> C# conversion
Projects
None yet
Development

No branches or pull requests

1 participant