Skip to content

Commit a3481ec

Browse files
authored
Improve inference for a TypeName (#52)
xref timholy/CodeTracking.jl#73
1 parent fc814c8 commit a3481ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/signatures.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ function methoddef!(@nospecialize(recurse), signatures, frame::Frame, @nospecial
456456
codeloc = codelocation(code, pc)
457457
loc = linetable(code, codeloc)
458458
ft = Base.unwrap_unionall((Base.unwrap_unionall(sigt)::DataType).parameters[1])
459-
if !startswith(String(ft.name.name), "##")
459+
if !startswith(String((ft.name::Core.TypeName).name), "##")
460460
@warn "file $(loc.file), line $(loc.line): no method found for $sigt"
461461
end
462462
if pc == pc3

0 commit comments

Comments
 (0)