This commit is contained in:
nub31
2025-07-05 15:17:31 +02:00
parent a4383c8290
commit 377aa4846c
2 changed files with 2 additions and 635 deletions

View File

@@ -53,7 +53,7 @@ public class DefinitionTable
var implementations = _syntaxTrees
.SelectMany(c => c.Definitions)
.OfType<TraitImplementationDefinitionNode>()
.Where(c => c.ForType.Equals(type));
.Where(c => c.ForType == type);
var implementation = implementations.SingleOrDefault(c => c.Functions.Any(x => x.Name == funcName));
@@ -164,7 +164,7 @@ public class BoundDefinitionTable
var implementations = _syntaxTrees
.SelectMany(c => c.Definitions)
.OfType<BoundTraitImplementationDefinitionNode>()
.Where(c => c.ForType.Equals(type));
.Where(c => c.ForType == type);
var implementation = implementations.SingleOrDefault(c => c.Functions.Any(x => x.Name == funcName));