Skip to content

Commit 6453303

Browse files
Apply suggestions from code review
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent bc92248 commit 6453303

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/compiler.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ module Issue537 end
611611
# Return-value when using `to_submodel`
612612
@model inner() = x ~ Normal()
613613
@model function outer()
614-
_ignore ~ to_submodel(inner())
614+
return _ignore ~ to_submodel(inner())
615615
end
616616
@test outer()() isa Real
617617

@@ -712,7 +712,7 @@ module Issue537 end
712712
return (; x, y)
713713
end
714714
@model function demo_tracked_submodel()
715-
vals ~ to_submodel(demo_tracked(), false)
715+
return vals ~ to_submodel(demo_tracked(), false)
716716
end
717717
for model in [demo_tracked(), demo_tracked_submodel()]
718718
# Make sure it's runnable and `y` is present in the return-value.

0 commit comments

Comments
 (0)