Skip to content

Commit e9c6c42

Browse files
authored
fix #33026, add location info to keyword arg sorting methods (#33093)
1 parent 0e00974 commit e9c6c42

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/julia-syntax.scm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,7 @@
476476
,(if (any kwarg? pargl) (gensy) UNUSED)
477477
(call (core kwftype) ,ftype)) ,kw ,@pargl ,@vararg)
478478
`(block
479+
,@(filter linenum? prologue)
479480
,(scopenest
480481
keynames
481482
(map (lambda (v dflt)

test/keywordargs.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,3 +353,7 @@ function g32074(i::Int32; args...)
353353
hook(i; args...)
354354
end
355355
@test isempty(g32074(Int32(1)))
356+
357+
# issue #33026
358+
using InteractiveUtils
359+
@test (@which kwf1(1, tens=2)).line > 0

0 commit comments

Comments
 (0)