Added error for captured fields of invalid types

このコミットが含まれているのは:
Sergio Pedri committed 2021-02-17 19:22:42 +01:00
1 親 eb5cf26d8f
コミット 4b280bf2b6
9ファイル変更
+76 -17

検索条件に一致するファイルはありません

+1 -1
ファイルの表示
@@ -478,7 +478,7 @@ namespace ComputeSharp.SourceGenerators.SyntaxRewriters
// Track and rewrite the discarded declaration
if (this.semanticModel.GetOperation(node.Expression) is IDiscardOperation operation)
{
TypeSyntax typeSyntax = operation.Type.TrackType(this.discoveredTypes);
TypeSyntax typeSyntax = operation.Type!.TrackType(this.discoveredTypes);
string identifier = $"__implicit{this.implicitVariables.Count}";
// Add the variable to the list of implicit declarations