sdk
                                
                                 sdk copied to clipboard
                                
                                    sdk copied to clipboard
                            
                            
                            
                        Record type annotations as bounds to type parameters
So far I think that this code should be OK, but we don't resolve T to its bounds.
num foo<T extends (num, {String name})>(T r) => r.$0;
The comment for DartType _resolveTypeParameter references https://github.com/dart-lang/language/issues/1182, which might be pertinent, but might be not.