Skip to content

Commit 7d883e1

Browse files
committed
test: add test with generated function example
1 parent 5086df0 commit 7d883e1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/syntax.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4409,4 +4409,8 @@ end
44094409
result = Cols(1, 2, 3)
44104410
@test occursin("Cols", result)
44114411
end
4412+
4413+
let @generated foo() = Expr(:thisfunction)
4414+
@test foo() === foo
4415+
end
44124416
end

0 commit comments

Comments
 (0)