diff --git a/src/Draco.Compiler/Internal/Binding/ClassBinder.cs b/src/Draco.Compiler/Internal/Binding/ClassBinder.cs index b9bf7a5de..8a0492f49 100644 --- a/src/Draco.Compiler/Internal/Binding/ClassBinder.cs +++ b/src/Draco.Compiler/Internal/Binding/ClassBinder.cs @@ -6,6 +6,9 @@ namespace Draco.Compiler.Internal.Binding; +/// +/// Binds an in-source defined class. +/// internal sealed class ClassBinder(Binder parent, TypeSymbol symbol) : Binder(parent) { public override TypeSymbol ContainingSymbol => this.symbol; @@ -32,7 +35,7 @@ internal override void LookupLocal(LookupResult result, string name, ref LookupF if (member.Name != name) continue; if (!allowSymbol(member)) continue; result.Add(member); - break; + // NOTE: We don't break here, because there are potentially multiple overloads } } }