Skip to content

Commit

Permalink
When typechecking method calls on this and where this is implicit, se…
Browse files Browse the repository at this point in the history
…t a valid location on the fabricated this.
  • Loading branch information
mcoblenz committed Sep 6, 2019
1 parent a6aa0e5 commit ea5ea41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/edu/cmu/cs/obsidian/typecheck/Checker.scala
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,7 @@ class Checker(globalTable: SymbolTable, verbose: Boolean = false) {
}

case LocalInvocation(name, _, params, args: Seq[Expression]) =>
val (typ, con, _, _, newGenericParams, newArgs) = handleInvocation(context, name, This(), params, args)
val (typ, con, _, _, newGenericParams, newArgs) = handleInvocation(context, name, This().setLoc(e), params, args)
//This may need correction.
(typ, con, LocalInvocation(name, newGenericParams, params, newArgs).setLoc(e))

Expand Down

0 comments on commit ea5ea41

Please sign in to comment.