Skip to content

Commit a0b4ea0

Browse files
committed
wip
1 parent c706878 commit a0b4ea0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

compiler/src/scala/quoted/runtime/impl/QuotesImpl.scala

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,6 @@ class QuotesImpl private (using val ctx: Context) extends Quotes, QuoteUnpickler
230230
object ClassDef extends ClassDefModule:
231231
def apply(cls: Symbol, parents: List[Tree], body: List[Statement]): ClassDef =
232232
val constr = ctx.typeAssigner.assignType(untpd.DefDef(nme.CONSTRUCTOR, Nil, tpd.TypeTree(dotc.core.Symbols.defn.UnitClass.typeRef), untpd.EmptyTree), cls.primaryConstructor)
233-
println(constr.show)
234-
println(constr)
235233
tpd.ClassDefWithParents(cls.asClass, constr, parents, body)
236234

237235
def copy(original: Tree)(name: String, constr: DefDef, parents: List[Tree], selfOpt: Option[ValDef], body: List[Statement]): ClassDef = {
@@ -2471,7 +2469,7 @@ class QuotesImpl private (using val ctx: Context) extends Quotes, QuoteUnpickler
24712469
dotc.core.Scopes.newScope, // TODO remove from parameters of newNormalizedClassSymbol
24722470
selfInfo.getOrElse(Types.NoType),
24732471
dotc.core.Symbols.NoSymbol)
2474-
val ctrTpe = Types.MethodType(Nil)(_ => Nil, _ => dotc.core.Symbols.defn.UnitClass.typeRef)
2472+
val ctrTpe = Types.MethodType(Nil)(_ => Nil, _ => cls.typeRef)
24752473
cls.enter(dotc.core.Symbols.newSymbol(cls, nme.CONSTRUCTOR, dotc.core.Flags.Method, ctrTpe, noSymbol))
24762474
cls
24772475

0 commit comments

Comments
 (0)