We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76b60c4 commit 5a65c91Copy full SHA for 5a65c91
src/dotty/tools/dotc/ast/Desugar.scala
@@ -171,16 +171,12 @@ object desugar {
171
172
def defaultGetters(vparamss: List[List[ValDef]], n: Int): List[DefDef] = vparamss match {
173
case (vparam :: vparams) :: vparamss1 =>
174
- def resultTpt = vparam.tpt match {
175
- case ByNameTypeTree(result) => result
176
- case tpt => tpt
177
- }
178
def defaultGetter: DefDef =
179
DefDef(
180
name = meth.name.defaultGetterName(n),
181
tparams = meth.tparams.map(tparam => dropContextBound(toDefParam(tparam))),
182
vparamss = takeUpTo(normalizedVparamss, n),
183
- tpt = resultTpt,
+ tpt = TypeTree(),
184
rhs = vparam.rhs
185
).withMods(Modifiers(mods.flags & AccessFlags, mods.privateWithin))
186
val rest = defaultGetters(vparams :: vparamss1, n + 1)
0 commit comments