Closed harborsiem closed 8 months ago
Good catch. In this specific case I think you're right. However with other options set (e.g. allowMarshaling: false
), the local function is required.
While we could add code to distinguish between these cases, it would make the code and testing more complex. We would need some real value (more than just a couple less lines of generated code) to justify that cost.
Actual behavior
Actual generated code:
Expected behavior
Expected generated code:
or
Repro steps
NativeMethods.txt
content:Context
0.3.46-beta
]netstandard2.0
]LangVersion
(if explicitly set by project): [e.g.9
]