@@ -3,26 +3,26 @@ import scala.quoted._
3
3
import scala .quoted .autolift .{given _ }
4
4
5
5
object Macros {
6
- def tup1 (tup : Expr [Tuple1 [Int ]]) with QuoteContext : Expr [Int ] = tup.value.productIterator.map(_.asInstanceOf [Int ]).sum
7
- def tup2 (tup : Expr [Tuple2 [Int , Int ]]) with QuoteContext : Expr [Int ] = tup.value.productIterator.map(_.asInstanceOf [Int ]).sum
8
- def tup3 (tup : Expr [Tuple3 [Int , Int , Int ]]) with QuoteContext : Expr [Int ] = tup.value.productIterator.map(_.asInstanceOf [Int ]).sum
9
- def tup4 (tup : Expr [Tuple4 [Int , Int , Int , Int ]]) with QuoteContext : Expr [Int ] = tup.value.productIterator.map(_.asInstanceOf [Int ]).sum
10
- def tup5 (tup : Expr [Tuple5 [Int , Int , Int , Int , Int ]]) with QuoteContext : Expr [Int ] = tup.value.productIterator.map(_.asInstanceOf [Int ]).sum
11
- def tup6 (tup : Expr [Tuple6 [Int , Int , Int , Int , Int , Int ]]) with QuoteContext : Expr [Int ] = tup.value.productIterator.map(_.asInstanceOf [Int ]).sum
12
- def tup7 (tup : Expr [Tuple7 [Int , Int , Int , Int , Int , Int , Int ]]) with QuoteContext : Expr [Int ] = tup.value.productIterator.map(_.asInstanceOf [Int ]).sum
13
- def tup8 (tup : Expr [Tuple8 [Int , Int , Int , Int , Int , Int , Int , Int ]]) with QuoteContext : Expr [Int ] = tup.value.productIterator.map(_.asInstanceOf [Int ]).sum
14
- def tup9 (tup : Expr [Tuple9 [Int , Int , Int , Int , Int , Int , Int , Int , Int ]]) with QuoteContext : Expr [Int ] = tup.value.productIterator.map(_.asInstanceOf [Int ]).sum
15
- def tup10 (tup : Expr [Tuple10 [Int , Int , Int , Int , Int , Int , Int , Int , Int , Int ]]) with QuoteContext : Expr [Int ] = tup.value.productIterator.map(_.asInstanceOf [Int ]).sum
16
- def tup11 (tup : Expr [Tuple11 [Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int ]]) with QuoteContext : Expr [Int ] = tup.value.productIterator.map(_.asInstanceOf [Int ]).sum
17
- def tup12 (tup : Expr [Tuple12 [Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int ]]) with QuoteContext : Expr [Int ] = tup.value.productIterator.map(_.asInstanceOf [Int ]).sum
18
- def tup13 (tup : Expr [Tuple13 [Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int ]]) with QuoteContext : Expr [Int ] = tup.value.productIterator.map(_.asInstanceOf [Int ]).sum
19
- def tup14 (tup : Expr [Tuple14 [Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int ]]) with QuoteContext : Expr [Int ] = tup.value.productIterator.map(_.asInstanceOf [Int ]).sum
20
- def tup15 (tup : Expr [Tuple15 [Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int ]]) with QuoteContext : Expr [Int ] = tup.value.productIterator.map(_.asInstanceOf [Int ]).sum
21
- def tup16 (tup : Expr [Tuple16 [Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int ]]) with QuoteContext : Expr [Int ] = tup.value.productIterator.map(_.asInstanceOf [Int ]).sum
22
- def tup17 (tup : Expr [Tuple17 [Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int ]]) with QuoteContext : Expr [Int ] = tup.value.productIterator.map(_.asInstanceOf [Int ]).sum
23
- def tup18 (tup : Expr [Tuple18 [Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int ]]) with QuoteContext : Expr [Int ] = tup.value.productIterator.map(_.asInstanceOf [Int ]).sum
24
- def tup19 (tup : Expr [Tuple19 [Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int ]]) with QuoteContext : Expr [Int ] = tup.value.productIterator.map(_.asInstanceOf [Int ]).sum
25
- def tup20 (tup : Expr [Tuple20 [Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int ]]) with QuoteContext : Expr [Int ] = tup.value.productIterator.map(_.asInstanceOf [Int ]).sum
26
- def tup21 (tup : Expr [Tuple21 [Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int ]]) with QuoteContext : Expr [Int ] = tup.value.productIterator.map(_.asInstanceOf [Int ]).sum
27
- def tup22 (tup : Expr [Tuple22 [Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int ]]) with QuoteContext : Expr [Int ] = tup.value.productIterator.map(_.asInstanceOf [Int ]).sum
6
+ def tup1 (tup : Expr [Tuple1 [Int ]]) ( using QuoteContext ) : Expr [Int ] = tup.value.productIterator.map(_.asInstanceOf [Int ]).sum
7
+ def tup2 (tup : Expr [Tuple2 [Int , Int ]]) ( using QuoteContext ) : Expr [Int ] = tup.value.productIterator.map(_.asInstanceOf [Int ]).sum
8
+ def tup3 (tup : Expr [Tuple3 [Int , Int , Int ]]) ( using QuoteContext ) : Expr [Int ] = tup.value.productIterator.map(_.asInstanceOf [Int ]).sum
9
+ def tup4 (tup : Expr [Tuple4 [Int , Int , Int , Int ]]) ( using QuoteContext ) : Expr [Int ] = tup.value.productIterator.map(_.asInstanceOf [Int ]).sum
10
+ def tup5 (tup : Expr [Tuple5 [Int , Int , Int , Int , Int ]]) ( using QuoteContext ) : Expr [Int ] = tup.value.productIterator.map(_.asInstanceOf [Int ]).sum
11
+ def tup6 (tup : Expr [Tuple6 [Int , Int , Int , Int , Int , Int ]]) ( using QuoteContext ) : Expr [Int ] = tup.value.productIterator.map(_.asInstanceOf [Int ]).sum
12
+ def tup7 (tup : Expr [Tuple7 [Int , Int , Int , Int , Int , Int , Int ]]) ( using QuoteContext ) : Expr [Int ] = tup.value.productIterator.map(_.asInstanceOf [Int ]).sum
13
+ def tup8 (tup : Expr [Tuple8 [Int , Int , Int , Int , Int , Int , Int , Int ]]) ( using QuoteContext ) : Expr [Int ] = tup.value.productIterator.map(_.asInstanceOf [Int ]).sum
14
+ def tup9 (tup : Expr [Tuple9 [Int , Int , Int , Int , Int , Int , Int , Int , Int ]]) ( using QuoteContext ) : Expr [Int ] = tup.value.productIterator.map(_.asInstanceOf [Int ]).sum
15
+ def tup10 (tup : Expr [Tuple10 [Int , Int , Int , Int , Int , Int , Int , Int , Int , Int ]]) ( using QuoteContext ) : Expr [Int ] = tup.value.productIterator.map(_.asInstanceOf [Int ]).sum
16
+ def tup11 (tup : Expr [Tuple11 [Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int ]]) ( using QuoteContext ) : Expr [Int ] = tup.value.productIterator.map(_.asInstanceOf [Int ]).sum
17
+ def tup12 (tup : Expr [Tuple12 [Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int ]]) ( using QuoteContext ) : Expr [Int ] = tup.value.productIterator.map(_.asInstanceOf [Int ]).sum
18
+ def tup13 (tup : Expr [Tuple13 [Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int ]]) ( using QuoteContext ) : Expr [Int ] = tup.value.productIterator.map(_.asInstanceOf [Int ]).sum
19
+ def tup14 (tup : Expr [Tuple14 [Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int ]]) ( using QuoteContext ) : Expr [Int ] = tup.value.productIterator.map(_.asInstanceOf [Int ]).sum
20
+ def tup15 (tup : Expr [Tuple15 [Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int ]]) ( using QuoteContext ) : Expr [Int ] = tup.value.productIterator.map(_.asInstanceOf [Int ]).sum
21
+ def tup16 (tup : Expr [Tuple16 [Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int ]]) ( using QuoteContext ) : Expr [Int ] = tup.value.productIterator.map(_.asInstanceOf [Int ]).sum
22
+ def tup17 (tup : Expr [Tuple17 [Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int ]]) ( using QuoteContext ) : Expr [Int ] = tup.value.productIterator.map(_.asInstanceOf [Int ]).sum
23
+ def tup18 (tup : Expr [Tuple18 [Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int ]]) ( using QuoteContext ) : Expr [Int ] = tup.value.productIterator.map(_.asInstanceOf [Int ]).sum
24
+ def tup19 (tup : Expr [Tuple19 [Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int ]]) ( using QuoteContext ) : Expr [Int ] = tup.value.productIterator.map(_.asInstanceOf [Int ]).sum
25
+ def tup20 (tup : Expr [Tuple20 [Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int ]]) ( using QuoteContext ) : Expr [Int ] = tup.value.productIterator.map(_.asInstanceOf [Int ]).sum
26
+ def tup21 (tup : Expr [Tuple21 [Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int ]]) ( using QuoteContext ) : Expr [Int ] = tup.value.productIterator.map(_.asInstanceOf [Int ]).sum
27
+ def tup22 (tup : Expr [Tuple22 [Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int , Int ]]) ( using QuoteContext ) : Expr [Int ] = tup.value.productIterator.map(_.asInstanceOf [Int ]).sum
28
28
}
0 commit comments