diff --git a/src/Draco.Compiler/Internal/Binding/BinderCache.cs b/src/Draco.Compiler/Internal/Binding/BinderCache.cs index c62da3d9a..8bad324b2 100644 --- a/src/Draco.Compiler/Internal/Binding/BinderCache.cs +++ b/src/Draco.Compiler/Internal/Binding/BinderCache.cs @@ -108,7 +108,7 @@ private ClassBinder BuildClassDeclarationBinder(ClassDeclarationSyntax syntax) var classSymbol = parent.DeclaredSymbols .OfType() .FirstOrDefault(member => member.DeclaringSyntax == syntax); // should we shove that in an helper ? - return new ClassBinder(parent, classSymbol); + return new ClassBinder(binder, classSymbol); }