Skip to content

Commit

Permalink
Apply minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
hyp3rflow authored and jhnaldo committed Jul 3, 2023
1 parent 5a63535 commit a47e674
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/esmeta/analyzer/TypeSemantics.scala
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@ class TypeSemantics(
// construct local type environment
(for (((param, arg), idx) <- (params zip argsWithOptional).zipWithIndex)
yield {
val argTy = removeAbsentTy(arg.ty)
val expected = param.ty.ty match
case _: UnknownTy => arg
case paramTy: ValueTy =>
val argTy = removeAbsentTy(arg.ty)
if (method && idx == 0) () /* ignore `this` for method-like calls */
else if (!(argTy <= paramTy))
val key = (callerNp, calleeRp, idx, param)
Expand Down

0 comments on commit a47e674

Please sign in to comment.