Skip to content

Commit c663795

Browse files
committed
Ad-hoc fix
1 parent 509a6e3 commit c663795

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

lib/typeprof/core/ast/sig_type.rb

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -658,11 +658,15 @@ def typecheck(genv, changes, vtx, subst)
658658

659659
def show
660660
cpath = @static_ret.last.cpath
661-
s = "#{ cpath.join("::") }"
662-
if !@args.empty?
663-
s << "[...]"
661+
if cpath
662+
s = "#{ cpath.join("::") }"
663+
if !@args.empty?
664+
s << "[...]"
665+
end
666+
s
667+
else
668+
"(unknown instance)"
664669
end
665-
s
666670
end
667671
end
668672

0 commit comments

Comments
 (0)