Skip to content

Commit

Permalink
Fix typo for crystal-lang#10522
Browse files Browse the repository at this point in the history
  • Loading branch information
HertzDevil committed Mar 30, 2021
1 parent e7b46c4 commit e5f33fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/compiler/crystal/semantic/restrictions.cr
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ module Crystal
def restrict(other : GenericClassType, context)
parents.try &.each do |parent|
if parent.module?
return self if parent.restriction_of?(other, context.instantiated_type, context)
return self if parent.restriction_of?(other, context.instantiated_type, context.strict?)
else
restricted = parent.restrict other, context
return self if restricted
Expand Down Expand Up @@ -745,7 +745,7 @@ module Crystal

parents.try &.each do |parent|
if parent.module?
return self if parent.restriction_of?(other, context.instantiated_type, context)
return self if parent.restriction_of?(other, context.instantiated_type, context.strict?)
else
restricted = parent.restrict other, context
return self if restricted
Expand Down

0 comments on commit e5f33fd

Please sign in to comment.