dotnet/roslyn
It looks like LocalRewriter.BuildParamsArray doesn't handle a case of bad or missing int type.
开放
#19,383 创建于 2017年5月10日
Area-CompilersBugLanguage-C#help wanted
仓库指标
- 星标
- (20,414 个星标)
- PR 合并指标
- (平均合并 6天 17小时) (30 天内合并 256 个 PR)
描述
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);