Skip to content

Commit 55c917d

Browse files
committed
Polishings
1 parent 6a71449 commit 55c917d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/pos/TastyADT.scala

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ object tasty {
1212
case DefaultGetter(methodName: TermName, idx: String) // s"$methodName${"$default$"}${idx+1}"
1313
case Variant(underlying: TermName, covariant: Boolean) // s"${if (covariant) "+" else "-"}$underlying"
1414
case SuperAccessor(underlying: TermName) // s"${"super$"}$underlying"
15-
case protectedAccessor(underlying: TermName) // s"${"protectded$"}$underlying"
16-
case protectecSetter(underlying: TermName) // s"${"protectded$set"}$underlying"
15+
case ProtectedAccessor(underlying: TermName) // s"${"protectded$"}$underlying"
16+
case ProtectecSetter(underlying: TermName) // s"${"protectded$set"}$underlying"
1717
case ObjectClass(underlying: TermName) // s"$underlying${"$"}"
1818

1919
case Expanded(prefix: TermName, selector: String) // s"$prefix${"$$"}$name" , used only for symbols coming from Scala 2
@@ -144,7 +144,7 @@ object tasty {
144144
case class ParamRef(binder: LambdaType[_, _, _], idx: Int) extends Type
145145
case class RecursiveThis(binder: RecursiveType) extends Type
146146

147-
abstract case class RecursiveType(private var _underlying: Type) extends Type {
147+
case class RecursiveType private (private var _underlying: Type) extends Type {
148148
def underlying = _underlying
149149
}
150150
object RecursiveType {
@@ -197,8 +197,8 @@ object tasty {
197197
def apply(pnames: List[TermName], ptypes: List[Type], restpe: Type): MethodType =
198198
new MethodType(pnames, ptypes, restpe) { override val companion = self }
199199
}
200-
object ImplicitMethodType extends SpecializedMethodTypeCompanion
201-
object ErasedMethodType extends SpecializedMethodTypeCompanion
200+
object ImplicitMethodType extends SpecializedMethodTypeCompanion
201+
object ErasedMethodType extends SpecializedMethodTypeCompanion
202202
object ErasedImplicitMethodType extends SpecializedMethodTypeCompanion
203203

204204
case class TypeBounds(loBound: Type, hiBound: Type)

0 commit comments

Comments
 (0)