@@ -199,11 +199,63 @@ const res10 = f6({
199199 } ,
200200} ) ;
201201
202+ const res11 = f6 ( {
203+ a : ( ) => {
204+ return {
205+ produce : ( n ) => n ,
206+ consume : ( x ) => x . toLowerCase ( ) ,
207+ } ;
208+ } ,
209+ b : ( ) => {
210+ return {
211+ produce : ( n ) => ( { v : n } ) ,
212+ consume : ( x ) => x . v . toLowerCase ( ) ,
213+ } ;
214+ } ,
215+ } ) ;
216+
202217declare function f7 < T > ( arg : {
218+ [ K in keyof T ] : ( arg : boolean ) = > {
219+ produce : ( n : string ) => T [ K ] ;
220+ consume: ( x : T [ K ] ) => void ;
221+ } ;
222+ } ) : T ;
223+
224+ const res12 = f7 ( {
225+ a ( arg ) {
226+ return {
227+ produce : ( n ) => n ,
228+ consume : ( x ) => x . toLowerCase ( ) ,
229+ } ;
230+ } ,
231+ b ( arg ) {
232+ return {
233+ produce : ( n ) => ( { v : n } ) ,
234+ consume : ( x ) => x . v . toLowerCase ( ) ,
235+ } ;
236+ } ,
237+ } ) ;
238+
239+ const res13 = f7 ( {
240+ a : ( arg ) => {
241+ return {
242+ produce : ( n ) => n ,
243+ consume : ( x ) => x . toLowerCase ( ) ,
244+ } ;
245+ } ,
246+ b : ( arg ) => {
247+ return {
248+ produce : ( n ) => ( { v : n } ) ,
249+ consume : ( x ) => x . v . toLowerCase ( ) ,
250+ } ;
251+ } ,
252+ } ) ;
253+
254+ declare function f8 < T > ( arg : {
203255 [ K in keyof T ] : ( ) = > [ ( n : string ) => T [ K ] , ( x : T [ K ] ) => void ] ;
204256} ) : T ;
205257
206- const res11 = f7 ( {
258+ const res14 = f8 ( {
207259 a ( ) {
208260 return [ ( n ) => n , ( x ) => x . toLowerCase ( ) ] ;
209261 } ,
@@ -212,7 +264,7 @@ const res11 = f7({
212264 } ,
213265} ) ;
214266
215- declare function f8 < T1 , T2 > (
267+ declare function f9 < T1 , T2 > (
216268 arg : {
217269 [ K in keyof T1 ] : {
218270 produce : ( n : string ) = > [ T1 [ K ] , any ] ;
@@ -226,7 +278,7 @@ declare function f8<T1, T2>(
226278 } ,
227279) : [ T1 , T2 ] ;
228280
229- const res12 = f8 ( {
281+ const res15 = f9 ( {
230282 a : {
231283 produce : ( n ) => [ n , [ n ] ] ,
232284 consume2 : ( x ) => x [ 0 ] . toLowerCase ( ) ,
@@ -368,15 +420,57 @@ var res10 = f6({
368420 } ;
369421 } ,
370422} ) ;
371- var res11 = f7 ( {
423+ var res11 = f6 ( {
424+ a : function ( ) {
425+ return {
426+ produce : function ( n ) { return n ; } ,
427+ consume : function ( x ) { return x . toLowerCase ( ) ; } ,
428+ } ;
429+ } ,
430+ b : function ( ) {
431+ return {
432+ produce : function ( n ) { return ( { v : n } ) ; } ,
433+ consume : function ( x ) { return x . v . toLowerCase ( ) ; } ,
434+ } ;
435+ } ,
436+ } ) ;
437+ var res12 = f7 ( {
438+ a : function ( arg ) {
439+ return {
440+ produce : function ( n ) { return n ; } ,
441+ consume : function ( x ) { return x . toLowerCase ( ) ; } ,
442+ } ;
443+ } ,
444+ b : function ( arg ) {
445+ return {
446+ produce : function ( n ) { return ( { v : n } ) ; } ,
447+ consume : function ( x ) { return x . v . toLowerCase ( ) ; } ,
448+ } ;
449+ } ,
450+ } ) ;
451+ var res13 = f7 ( {
452+ a : function ( arg ) {
453+ return {
454+ produce : function ( n ) { return n ; } ,
455+ consume : function ( x ) { return x . toLowerCase ( ) ; } ,
456+ } ;
457+ } ,
458+ b : function ( arg ) {
459+ return {
460+ produce : function ( n ) { return ( { v : n } ) ; } ,
461+ consume : function ( x ) { return x . v . toLowerCase ( ) ; } ,
462+ } ;
463+ } ,
464+ } ) ;
465+ var res14 = f8 ( {
372466 a : function ( ) {
373467 return [ function ( n ) { return n ; } , function ( x ) { return x . toLowerCase ( ) ; } ] ;
374468 } ,
375469 b : function ( ) {
376470 return [ function ( n ) { return ( { v : n } ) ; } , function ( x ) { return x . v . toLowerCase ( ) ; } ] ;
377471 } ,
378472} ) ;
379- var res12 = f8 ( {
473+ var res15 = f9 ( {
380474 a : {
381475 produce : function ( n ) { return [ n , [ n ] ] ; } ,
382476 consume2 : function ( x ) { return x [ 0 ] . toLowerCase ( ) ; } ,
@@ -490,16 +584,40 @@ declare const res10: {
490584 v : string ;
491585 } ;
492586} ;
587+ declare const res11 : {
588+ a : string ;
589+ b : {
590+ v : string ;
591+ } ;
592+ } ;
493593declare function f7 < T > (arg: {
594+ [ K in keyof T ] : ( arg : boolean ) = > {
595+ produce : ( n : string ) => T [ K ] ;
596+ consume : ( x : T [ K ] ) = > void ;
597+ } ;
598+ } ): T;
599+ declare const res12: {
600+ a : string ;
601+ b : {
602+ v : string ;
603+ } ;
604+ } ;
605+ declare const res13: {
606+ a : string ;
607+ b : {
608+ v : string ;
609+ } ;
610+ } ;
611+ declare function f8< T > (arg: {
494612 [ K in keyof T ] : ( ) = > [ ( n : string ) => T [ K ] , ( x : T [ K ] ) => void ] ;
495613} ): T;
496- declare const res11 : {
614+ declare const res14 : {
497615 a : string ;
498616 b : {
499617 v : string ;
500618 } ;
501619} ;
502- declare function f8 < T1 , T2 > (arg: {
620+ declare function f9 < T1 , T2 > (arg: {
503621 [ K in keyof T1 ] : {
504622 produce : ( n : string ) => [ T1 [ K ] , any ] ;
505623 consume : ( x : T1 [ K ] ) = > void ;
@@ -510,7 +628,7 @@ declare function f8<T1, T2>(arg: {
510628 consume2 : ( x : T2 ) = > void ;
511629 } ;
512630} ): [T1, T2];
513- declare const res12 : [{
631+ declare const res15 : [{
514632 a : string ;
515633 b : {
516634 v : string ;
0 commit comments