From 9f6565675c7a956a370724f1022102862a05eb1d Mon Sep 17 00:00:00 2001 From: glopesdev Date: Fri, 19 Jul 2024 13:38:36 +0100 Subject: [PATCH] Allow for recursive subject scope declarations --- Bonsai.Core/Expressions/InspectBuilder.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Bonsai.Core/Expressions/InspectBuilder.cs b/Bonsai.Core/Expressions/InspectBuilder.cs index b0ec68de..460fe7db 100644 --- a/Bonsai.Core/Expressions/InspectBuilder.cs +++ b/Bonsai.Core/Expressions/InspectBuilder.cs @@ -222,7 +222,7 @@ methodCall.Arguments[0] is MethodCallExpression lazy && methodCall.Arguments.Count == 1 && methodCall.Arguments[0] is LambdaExpression lambda) { - source = lambda.Body; + return GetInspectBuilder(lambda.Body); } else break; }