Skip to content
Snippets Groups Projects
Commit c361740e authored by Emmanouil (Manos) Koukoutos's avatar Emmanouil (Manos) Koukoutos
Browse files

MethodLifting compatible with Scala-legal printing

parent 8ec49e59
No related branches found
No related tags found
No related merge requests found
......@@ -24,10 +24,10 @@ object MethodLifting extends TransformationPhase {
// We import class type params
val ctParams = cd.tparams
val id = FreshIdentifier(cd.id.name+"."+fd.id.name).setPos(fd.id)
val id = FreshIdentifier(cd.id.name+"$"+fd.id.name).setPos(fd.id)
val recType = classDefToClassType(cd, ctParams.map(_.tp))
val receiver = FreshIdentifier("this").setType(recType).setPos(cd.id)
val receiver = FreshIdentifier("$this").setType(recType).setPos(cd.id)
val nfd = new FunDef(id, ctParams ++ fd.tparams, fd.returnType, ValDef(receiver, recType) +: fd.params)
nfd.postcondition = fd.postcondition
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment