未验证 提交 58a4f7da 编写于 作者: J Jared Parsons 提交者: GitHub

Merge pull request #40984 from sharwell/fix-assertion

Fix assertion for the bootstrap compiler
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
using System.Diagnostics; using System.Diagnostics;
using System.Diagnostics.CodeAnalysis; using System.Diagnostics.CodeAnalysis;
using System.Threading; using System.Threading;
using Roslyn.Utilities;
namespace Microsoft.CodeAnalysis.CSharp.Symbols.PublicModel namespace Microsoft.CodeAnalysis.CSharp.Symbols.PublicModel
{ {
...@@ -17,7 +18,7 @@ internal sealed class ArrayTypeSymbol : TypeSymbol, IArrayTypeSymbol ...@@ -17,7 +18,7 @@ internal sealed class ArrayTypeSymbol : TypeSymbol, IArrayTypeSymbol
public ArrayTypeSymbol(Symbols.ArrayTypeSymbol underlying, CodeAnalysis.NullableAnnotation nullableAnnotation) public ArrayTypeSymbol(Symbols.ArrayTypeSymbol underlying, CodeAnalysis.NullableAnnotation nullableAnnotation)
: base(nullableAnnotation) : base(nullableAnnotation)
{ {
Debug.Assert(underlying is object); RoslynDebug.Assert(underlying is object);
_underlying = underlying; _underlying = underlying;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册