-
Notifications
You must be signed in to change notification settings - Fork 309
Default date/time values generate invalid code #6251
Copy link
Copy link
Labels
.NETPull requests that update .net codePull requests that update .net codeCsharpPull requests that update .net codePull requests that update .net codehelp wantedIssue caused by core project dependency modules or libraryIssue caused by core project dependency modules or librarypriority:p2Medium. For a p2 bug, generally have a work-around. Bug SLA <=30 daysMedium. For a p2 bug, generally have a work-around. Bug SLA <=30 daystype:bugA broken experienceA broken experience
Metadata
Metadata
Assignees
Labels
.NETPull requests that update .net codePull requests that update .net codeCsharpPull requests that update .net codePull requests that update .net codehelp wantedIssue caused by core project dependency modules or libraryIssue caused by core project dependency modules or librarypriority:p2Medium. For a p2 bug, generally have a work-around. Bug SLA <=30 daysMedium. For a p2 bug, generally have a work-around. Bug SLA <=30 daystype:bugA broken experienceA broken experience
Type
Projects
Status
New📃
When generating an API with default time values, the defaults are strings, which causes invalid code to be generated.
The following segment:
generates the following:
... which is a compile error.
repro.zip
.... also,
datevalues don't have any defaults written at all...