Skip to content

Commit 5c422e2

Browse files
authored
Merge pull request #9797 from dotty-staging/remove-reflect-MatchCaseType
Remove Reflect.MatchCaseType
2 parents df011fa + 1010c83 commit 5c422e2

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

library/src/scala/tasty/Reflection.scala

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1642,15 +1642,6 @@ trait Reflection extends reflect.Types { reflectSelf: CompilerInterface =>
16421642
end extension
16431643
end MatchTypeOps
16441644

1645-
// TODO remove this definition from here
1646-
/**
1647-
* An accessor for `scala.internal.MatchCase[_,_]`, the representation of a `MatchType` case.
1648-
*/
1649-
def MatchCaseType(using ctx: Context): Type = {
1650-
import scala.internal.MatchCase
1651-
Type(classOf[MatchCase[_,_]])
1652-
}
1653-
16541645
given (using ctx: Context) as TypeTest[Type, ByNameType] = reflectSelf.ByNameType_TypeTest
16551646

16561647
object ByNameType:

tests/run-macros/tasty-construct-types/Macro_1.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ object Macros {
3737
TypeLambda(
3838
List("t"),
3939
_ => List(TypeBounds(Type.of[Nothing], Type.of[Any])),
40-
tl => MatchCaseType.appliedTo(List(Type.of[List].appliedTo(tl.param(0)), tl.param(0)))))
40+
tl => Type.of[scala.internal.MatchCase].appliedTo(List(Type.of[List].appliedTo(tl.param(0)), tl.param(0)))))
4141
)
4242

4343
assert(x1T =:= '[1].unseal.tpe)

0 commit comments

Comments
 (0)