Skip to content

Commit fd96d88

Browse files
committed
Use isTupleN in reflection as it is a method on TypeRepr
1 parent 6fad310 commit fd96d88

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1738,7 +1738,7 @@ class QuotesImpl private (using val ctx: Context) extends Quotes, QuoteUnpickler
17381738
val tpNoRefinement = self.dropDependentRefinement
17391739
tpNoRefinement != self
17401740
&& dotc.core.Symbols.defn.isNonRefinedFunction(tpNoRefinement)
1741-
def isTupleNType: Boolean =
1741+
def isTupleN: Boolean =
17421742
dotc.core.Symbols.defn.isTupleNType(self)
17431743
def select(sym: Symbol): TypeRepr = self.select(sym)
17441744
def appliedTo(targ: TypeRepr): TypeRepr =

library/src/scala/quoted/Quotes.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2530,7 +2530,7 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
25302530
*
25312531
* @return true if the dealiased type of `self` is `TupleN[T1, T2, ..., Tn]`
25322532
*/
2533-
def isTupleNType: Boolean
2533+
def isTupleN: Boolean
25342534

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

0 commit comments

Comments
 (0)