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<'_> {
13481348 }
13491349 } ;
13501350 }
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+
13511361 emit ! (
13521362 self ,
13531363 Instruction :: BuildTuple {
1354- size: u32 :: try_from( type_params. len( ) ) . unwrap( ) ,
1364+ size: u32 :: try_from( type_params. type_params . len( ) ) . unwrap( ) ,
13551365 }
13561366 ) ;
13571367 Ok ( ( ) )
@@ -1762,8 +1772,6 @@ impl Compiler<'_> {
17621772 wrapper_name. clone ( ) ,
17631773 ) ;
17641774
1765- // Compile type parameters
1766-
17671775 // Compile type parameters
17681776 for type_param in & type_params. type_params {
17691777 match type_param {
You can’t perform that action at this time.
0 commit comments