Skip to content

Commit 18bea76

Browse files
committed
oh God, in-place typechecking!!!
1 parent 76c9839 commit 18bea76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/scala/scala/async/internal/AsyncTransform.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ trait AsyncTransform {
5757
val template = Template(List(tryToUnit, typeOf[() => Unit]).map(TypeTree(_)), emptyValDef, body)
5858

5959
val t = ClassDef(NoMods, name.stateMachineT, Nil, template)
60-
callSiteTyper.typedPos(macroPos)(Block(t :: Nil, Literal(Constant(()))))
60+
typingTransform(atPos(macroPos)(Block(t :: Nil, Literal(Constant(())))))((tree, api) => api.typecheck(tree))
6161
t
6262
}
6363

0 commit comments

Comments
 (0)