Skip to content

Commit 96e6a5a

Browse files
committed
Use isTupleN in reflection as it is a method on TypeRepr
1 parent f5adb70 commit 96e6a5a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -1694,7 +1694,7 @@ class QuotesImpl private (using val ctx: Context) extends Quotes, QuoteUnpickler
16941694
val tpNoRefinement = self.dropDependentRefinement
16951695
tpNoRefinement != self
16961696
&& dotc.core.Symbols.defn.isNonRefinedFunction(tpNoRefinement)
1697-
def isTupleNType: Boolean =
1697+
def isTupleN: Boolean =
16981698
dotc.core.Symbols.defn.isTupleNType(self)
16991699
def select(sym: Symbol): TypeRepr = self.select(sym)
17001700
def appliedTo(targ: TypeRepr): TypeRepr =

library/src/scala/quoted/Quotes.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -2477,7 +2477,7 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
24772477
*
24782478
* @return true if the dealiased type of `self` is `TupleN[T1, T2, ..., Tn]`
24792479
*/
2480-
def isTupleNType: Boolean
2480+
def isTupleN: Boolean
24812481

24822482
/** The type <this . sym>, reduced if possible */
24832483
def select(sym: Symbol): TypeRepr

0 commit comments

Comments
 (0)