Skip to content

Commit

Permalink
Uninstate global.treeTpe
Browse files Browse the repository at this point in the history
  • Loading branch information
som-snytt committed May 25, 2022
1 parent 7952071 commit 73853bc
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/reflect/scala/reflect/internal/Types.scala
Original file line number Diff line number Diff line change
Expand Up @@ -5291,8 +5291,6 @@ trait Types
"scala.collection.Iterable",
"scala.collection.Iterator")

@deprecated("Use _.tpe", "2.12.12") // used by scala-meta, leave until they remove the dependency.
private[scala] val treeTpe = (t: Tree) => t.tpe
private[scala] val typeContainsTypeVar = { val collector = new FindTypeCollector(_.isInstanceOf[TypeVar]); (tp: Type) => collector.collect(tp).isDefined }
private[scala] val typeIsSubTypeOfSerializable = (tp: Type) => tp <:< SerializableTpe

Expand Down

0 comments on commit 73853bc

Please sign in to comment.