Skip to content

Commit bc1bc12

Browse files
committed
More accurately model Class types
1 parent f469a12 commit bc1bc12

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

zjit/src/hir_type/gen_hir_type.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,9 @@ def base_type name
7474
base_type "Range"
7575
base_type "Set"
7676
base_type "Regexp"
77-
base_type "Class"
78-
base_type "Module"
77+
_, module_exact = base_type "Module"
78+
module_exact.subtype "Class"
79+
module_exact.subtype "ClassExact"
7980

8081
(integer, integer_exact) = base_type "Integer"
8182
# CRuby partitions Integer into immediate and non-immediate variants.

0 commit comments

Comments
 (0)