···42424343class Quickdraw::Test
4444 def assert_subtype(subtype, supertype)
4545- assert Literal.subtype?(subtype, of: supertype) do
4545+ assert Literal.subtype?(subtype, supertype) do
4646 "Expected #{subtype.inspect} to be a subtype of #{supertype.inspect}."
4747 end
4848 end
49495050 def refute_subtype(subtype, supertype)
5151- refute Literal.subtype?(subtype, of: supertype) do
5151+ refute Literal.subtype?(subtype, supertype) do
5252 "Expected #{subtype.inspect} not to be a subtype of #{supertype.inspect}."
5353 end
5454 end
···19192020 i, len = 0, types.size
2121 while i < len
2222- return false unless Literal.subtype?(other_types[i], of: types[i])
2222+ return false unless Literal.subtype?(other_types[i], types[i])
2323 i += 1
2424 end
2525···36363737 i, len = 0, types.size
3838 while i < len
3939- return false unless Literal.subtype?(other_types[i], of: types[i])
3939+ return false unless Literal.subtype?(other_types[i], types[i])
4040 i += 1
4141 end
4242
+2-2
lib/literal/types/class_type.rb
···2222 def >=(other)
2323 case other
2424 when Literal::Types::ClassType
2525- Literal.subtype?(other.type, of: @type)
2525+ Literal.subtype?(other.type, @type)
2626 when Literal::Types::DescendantType
2727- (Class === other.type) && Literal.subtype?(other.type, of: @type)
2727+ (Class === other.type) && Literal.subtype?(other.type, @type)
2828 else
2929 false
3030 end