dotnet/roslyn
在 GitHub 查看It looks like LocalRewriter.BuildParamsArray doesn't handle a case of bad or missing int type.
Open
#19,383 建立於 2017年5月10日
Area-CompilersBugLanguage-C#help wanted
描述
var int32Type = methodOrIndexer.ContainingAssembly.GetPrimitiveType(Microsoft.Cci.PrimitiveTypeCode.Int32);
return new BoundArrayCreation(
syntax,
ImmutableArray.Create(
MakeLiteral(syntax, ConstantValue.Create(arrayArgs.Length), int32Type)),
new BoundArrayInitialization(syntax, arrayArgs),
paramArrayType);