Open dagood opened 3 years ago
I suppose it's also incorrectly producing [NotNullIfNotNullAttribute(...)]
rather than [return: NotNullIfNotNullAttribute(...)]
. Wasn't aware of this syntax before today.
Yeah this is wrong. However, we're going to be moving GenAPI
to use Roslyn instead of CCI and that will fix these kind of issues. Here is a small POC: https://github.com/safern/roslyn-genapi
Wonderful. Can also then build it from source. 😄
This appears fixed in Microsoft.DotNet.GenAPI, 7.0.0-beta.22166.1.
GenAPI
1.0.0-beta.18619.2
In https://www.nuget.org/packages/System.Runtime.CompilerServices.Unsafe/5.0.0
ref/netstandard2.1/System.Runtime.CompilerServices.Unsafe.dll
we have this method (output from ILSpy):But GenAPI produced this source code:
Which results in this compile error: