We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In #159 I said
This will need to deal with inlining a const field as well as just constant literals.
I didn't actually implement this part so it will now leave you with a compile time error. Something like:
Input:
Public Class Test Const x As Date = #1990-1-1# Private Sub Y(ByVal opt As Date = x) End Sub End Class
Erroneous output:
using System; public class Test { DateTime x = DateTime.Parse("1990-01-01"); private void Y(DateTime opt = x) { } }
Expected output:
using System; public class Test { private static DateTime x = DateTime.Parse("1990-01-01"); private void Y([Optional, DateTimeConstant(123456789L/*1990-01-01*/)] DateTime opt) { } }
Proposed work:
The text was updated successfully, but these errors were encountered:
279e1aa
No branches or pull requests
In #159 I said
I didn't actually implement this part so it will now leave you with a compile time error. Something like:
Input:
Erroneous output:
Expected output:
Proposed work:
The text was updated successfully, but these errors were encountered: