Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/typeprof/core/ast/sig_type.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ def self.typecheck_for_module(genv, changes, f_mod, f_args, a_vtx, subst)
a_vtx.each_type do |ty|
ty = ty.base_type(genv)
while ty
if ty.mod == f_mod
if ty.mod == f_mod && ty.is_a?(Type::Instance)
args_all_match = true
f_args.zip(ty.args) do |f_arg_node, a_arg_ty|
unless f_arg_node.typecheck(genv, changes, a_arg_ty, subst)
Expand Down