Added error for captured fields of invalid types
このコミットが含まれているのは:
1 親
eb5cf26d8f
コミット
4b280bf2b6
9ファイル変更
+76
-17
検索条件に一致するファイルはありません
@@ -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
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする