dotnet/roslyn
It looks like LocalRewriter.BuildParamsArray doesn't handle a case of bad or missing int type.
Aberta
#19.383 aberto em 10 de mai. de 2017
Area-CompilersBugLanguage-C#help wanted
Métricas do repositório
- Stars
- (20.414 estrelas)
- Métricas de merge de PR
- (Mesclagem média 6d 17h) (256 fundiu PRs em 30d)
Description
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);