{"push_id":1308596248,"size":2,"distinct_size":2,"ref":"refs/heads/generic-param-fix-it","head":"634055e298806183286699b229646be08c200860","before":"85b793e37a974dcbba3f9d78dcaf232c4eef59cc","commits":[{"sha":"b56aba603f7207fa72d7d8f5420c859594614bac","author":{"name":"Jordan Rose","email":"92520b00b4dfdc269f73534aec3bca632e7dd331@apple.com"},"message":"Add a fix-it for missing generic parameters on construction.\n\nFor example, if someone tries to use the newly-generic type Cache,\nfrom Foundation:\n\n  var cache = Cache()\n\nthey'll now get a fix-it to substitute the default generic parameters:\n\n  var cache = Cache<AnyObject, AnyObject>()\n\nThe rules for choosing this placeholder type are based on constraints\nand won't be right 100% of the time, but they should be reasonable.\n(In particular, constraints on associated types are ignored.)\nIn cases where there's no one concrete type that will work, an Xcode-\nstyle placeholder is inserted instead.\n\n- An unconstrained generic parameter defaults to 'Any'.\n- A superclass-constrained parameter defaults to that class,\n  e.g. 'UIView'.\n- A parameter constrained to a single @objc protocol (or to AnyObject)\n  defaults to that protocol, e.g. 'NSCoding'.\n- Anything else gets a placeholder using the generic parameter's name\n  and protocol composition syntax.\n\nrdar://problem/27087345","distinct":true,"url":"https://api.github.com/repos/jrose-apple/swift/commits/b56aba603f7207fa72d7d8f5420c859594614bac"},{"sha":"634055e298806183286699b229646be08c200860","author":{"name":"Jordan Rose","email":"92520b00b4dfdc269f73534aec3bca632e7dd331@apple.com"},"message":"Better generic fix-its for types as well as construction and casts.\n\nSlava pointed out that we have an existing version of the code from\nthe previous commit that's only used when checking types. Replace it\nwith the new code, which handles more cases.","distinct":true,"url":"https://api.github.com/repos/jrose-apple/swift/commits/634055e298806183286699b229646be08c200860"}]}
{"actor":{"display_login":"jrose-apple"}}