File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -1348,10 +1348,20 @@ impl Compiler<'_> {
1348
1348
}
1349
1349
} ;
1350
1350
}
1351
+
1352
+ // Build tuple of type parameters
1353
+ for type_param in & type_params. type_params {
1354
+ match type_param {
1355
+ TypeParam :: TypeVar ( tv) => self . load_name ( tv. name . as_str ( ) ) ?,
1356
+ TypeParam :: ParamSpec ( ps) => self . load_name ( ps. name . as_str ( ) ) ?,
1357
+ TypeParam :: TypeVarTuple ( tvt) => self . load_name ( tvt. name . as_str ( ) ) ?,
1358
+ }
1359
+ }
1360
+
1351
1361
emit ! (
1352
1362
self ,
1353
1363
Instruction :: BuildTuple {
1354
- size: u32 :: try_from( type_params. len( ) ) . unwrap( ) ,
1364
+ size: u32 :: try_from( type_params. type_params . len( ) ) . unwrap( ) ,
1355
1365
}
1356
1366
) ;
1357
1367
Ok ( ( ) )
@@ -1762,8 +1772,6 @@ impl Compiler<'_> {
1762
1772
wrapper_name. clone ( ) ,
1763
1773
) ;
1764
1774
1765
- // Compile type parameters
1766
-
1767
1775
// Compile type parameters
1768
1776
for type_param in & type_params. type_params {
1769
1777
match type_param {
You can’t perform that action at this time.
0 commit comments