{"action":"created","issue":{"url":"https://api.github.com/repos/lionheart/openradar-mirror/issues/15422","repository_url":"https://api.github.com/repos/lionheart/openradar-mirror","labels_url":"https://api.github.com/repos/lionheart/openradar-mirror/issues/15422/labels{/name}","comments_url":"https://api.github.com/repos/lionheart/openradar-mirror/issues/15422/comments","events_url":"https://api.github.com/repos/lionheart/openradar-mirror/issues/15422/events","html_url":"https://github.com/lionheart/openradar-mirror/issues/15422","id":166715615,"number":15422,"title":"27462195: Swift 2.3 NSUnitLength.kilometers is an instance variable not a class variable","user":{"login":"openradar-mirror","id":13605213,"avatar_url":"https://avatars.githubusercontent.com/u/13605213?v=3","gravatar_id":"","url":"https://api.github.com/users/openradar-mirror","html_url":"https://github.com/openradar-mirror","followers_url":"https://api.github.com/users/openradar-mirror/followers","following_url":"https://api.github.com/users/openradar-mirror/following{/other_user}","gists_url":"https://api.github.com/users/openradar-mirror/gists{/gist_id}","starred_url":"https://api.github.com/users/openradar-mirror/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openradar-mirror/subscriptions","organizations_url":"https://api.github.com/users/openradar-mirror/orgs","repos_url":"https://api.github.com/users/openradar-mirror/repos","events_url":"https://api.github.com/users/openradar-mirror/events{/privacy}","received_events_url":"https://api.github.com/users/openradar-mirror/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/lionheart/openradar-mirror/labels/classification:bug","name":"classification:bug","color":"e11d21"},{"url":"https://api.github.com/repos/lionheart/openradar-mirror/labels/reproducible:yes","name":"reproducible:yes","color":"5319e7"},{"url":"https://api.github.com/repos/lionheart/openradar-mirror/labels/status:fixed","name":"status:fixed","color":"444444"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/lionheart/openradar-mirror/milestones/2","html_url":"https://github.com/lionheart/openradar-mirror/milestones/iOS","labels_url":"https://api.github.com/repos/lionheart/openradar-mirror/milestones/2/labels","id":1237416,"number":2,"title":"iOS","description":null,"creator":{"login":"openradar-mirror","id":13605213,"avatar_url":"https://avatars.githubusercontent.com/u/13605213?v=3","gravatar_id":"","url":"https://api.github.com/users/openradar-mirror","html_url":"https://github.com/openradar-mirror","followers_url":"https://api.github.com/users/openradar-mirror/followers","following_url":"https://api.github.com/users/openradar-mirror/following{/other_user}","gists_url":"https://api.github.com/users/openradar-mirror/gists{/gist_id}","starred_url":"https://api.github.com/users/openradar-mirror/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openradar-mirror/subscriptions","organizations_url":"https://api.github.com/users/openradar-mirror/orgs","repos_url":"https://api.github.com/users/openradar-mirror/repos","events_url":"https://api.github.com/users/openradar-mirror/events{/privacy}","received_events_url":"https://api.github.com/users/openradar-mirror/received_events","type":"User","site_admin":false},"open_issues":2403,"closed_issues":14,"state":"open","created_at":"2015-08-03T02:08:30Z","updated_at":"2016-07-24T07:01:40Z","due_on":null,"closed_at":null},"comments":12,"created_at":"2016-07-21T01:01:56Z","updated_at":"2016-07-24T18:02:48Z","closed_at":"2016-07-24T07:01:40Z","body":"#### Description\n\nAll the new NSUnit* class var's are instance var's in when you display the class definition. So you can't use the builtins for Swift 2.3 like you can in Swift 3 and Objective-C\r\n\r\nSteps to Reproduce:\r\nlet distance = NSMeasurement(doubleValue: 5, unit: NSUnitLength.kilometers)\r\n\r\n// Compile Error: Instance member `kilometers` cannot be use on type `NSUnitLength`\r\n\r\n\r\nExpected Results:\r\n// Expect the following to compile\r\nlet distance = NSMeasurement(doubleValue: 5, unit: NSUnitLength.kilometers)\r\n\r\n\r\n// Works in Objective-C\r\nNSMeasurement* distance = [[NSMeasurement alloc] initWithDoubleValue:5 unit: [NSUnitLength kilometers]];\r\n\r\n// Works in Swift 3\r\nlet distance = Measurement(value: 5, unit: UnitLength.kilometers)\r\n\r\n\r\nActual Results:\r\nlet distance = NSMeasurement(doubleValue: 5, unit: NSUnitLength.kilometers)\r\n\r\n// Compile Error: Instance member `kilometers` cannot be use on type `NSUnitLength`\n\n-\nProduct Version: iOS 10\nCreated: 2016-07-21T01:00:38.087560\nOriginated: 2016-07-20T00:00:00\nOpen Radar Link: http://www.openradar.me/27462195"},"comment":{"url":"https://api.github.com/repos/lionheart/openradar-mirror/issues/comments/234791988","html_url":"https://github.com/lionheart/openradar-mirror/issues/15422#issuecomment-234791988","issue_url":"https://api.github.com/repos/lionheart/openradar-mirror/issues/15422","id":234791988,"user":{"login":"openradar-mirror","id":13605213,"avatar_url":"https://avatars.githubusercontent.com/u/13605213?v=3","gravatar_id":"","url":"https://api.github.com/users/openradar-mirror","html_url":"https://github.com/openradar-mirror","followers_url":"https://api.github.com/users/openradar-mirror/followers","following_url":"https://api.github.com/users/openradar-mirror/following{/other_user}","gists_url":"https://api.github.com/users/openradar-mirror/gists{/gist_id}","starred_url":"https://api.github.com/users/openradar-mirror/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openradar-mirror/subscriptions","organizations_url":"https://api.github.com/users/openradar-mirror/orgs","repos_url":"https://api.github.com/users/openradar-mirror/repos","events_url":"https://api.github.com/users/openradar-mirror/events{/privacy}","received_events_url":"https://api.github.com/users/openradar-mirror/received_events","type":"User","site_admin":false},"created_at":"2016-07-24T18:02:48Z","updated_at":"2016-07-24T18:02:48Z","body":"Resolved: Xcode 10 Beta 3\nModified: 2016-07-24T06:32:01.400090"}}
{"actor":{"display_login":"openradar-mirror"}}