{"action":"created","issue":{"url":"https://api.github.com/repos/dlang/dmd/issues/8607","repository_url":"https://api.github.com/repos/dlang/dmd","labels_url":"https://api.github.com/repos/dlang/dmd/issues/8607/labels{/name}","comments_url":"https://api.github.com/repos/dlang/dmd/issues/8607/comments","events_url":"https://api.github.com/repos/dlang/dmd/issues/8607/events","html_url":"https://github.com/dlang/dmd/pull/8607","id":353468778,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEwNTEyOTk0","number":8607,"title":"Fix Issue 18672 - Error in @safe transitive propagation with associative arrays","user":{"login":"RazvanN7","id":22907766,"node_id":"MDQ6VXNlcjIyOTA3NzY2","avatar_url":"https://avatars2.githubusercontent.com/u/22907766?v=4","gravatar_id":"","url":"https://api.github.com/users/RazvanN7","html_url":"https://github.com/RazvanN7","followers_url":"https://api.github.com/users/RazvanN7/followers","following_url":"https://api.github.com/users/RazvanN7/following{/other_user}","gists_url":"https://api.github.com/users/RazvanN7/gists{/gist_id}","starred_url":"https://api.github.com/users/RazvanN7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RazvanN7/subscriptions","organizations_url":"https://api.github.com/users/RazvanN7/orgs","repos_url":"https://api.github.com/users/RazvanN7/repos","events_url":"https://api.github.com/users/RazvanN7/events{/privacy}","received_events_url":"https://api.github.com/users/RazvanN7/received_events","type":"User","site_admin":false},"labels":[{"id":537492633,"node_id":"MDU6TGFiZWw1Mzc0OTI2MzM=","url":"https://api.github.com/repos/dlang/dmd/labels/Bug%20Fix","name":"Bug Fix","color":"0052cc","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-08-23T16:56:14Z","updated_at":"2018-08-25T11:58:13Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/dlang/dmd/pulls/8607","html_url":"https://github.com/dlang/dmd/pull/8607","diff_url":"https://github.com/dlang/dmd/pull/8607.diff","patch_url":"https://github.com/dlang/dmd/pull/8607.patch"},"body":"When `opAssign` is generated, the destructor has only been through semantic1, therefore no attributes were generated (an empty destructor that is not marked as @safe will be seen as @system). In order to overcome this, when opAssign is in semantic3, a check is performed to see if the destructor has been considered @safe in the meantime."},"comment":{"url":"https://api.github.com/repos/dlang/dmd/issues/comments/415964405","html_url":"https://github.com/dlang/dmd/pull/8607#issuecomment-415964405","issue_url":"https://api.github.com/repos/dlang/dmd/issues/8607","id":415964405,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNTk2NDQwNQ==","user":{"login":"rainers","id":702284,"node_id":"MDQ6VXNlcjcwMjI4NA==","avatar_url":"https://avatars3.githubusercontent.com/u/702284?v=4","gravatar_id":"","url":"https://api.github.com/users/rainers","html_url":"https://github.com/rainers","followers_url":"https://api.github.com/users/rainers/followers","following_url":"https://api.github.com/users/rainers/following{/other_user}","gists_url":"https://api.github.com/users/rainers/gists{/gist_id}","starred_url":"https://api.github.com/users/rainers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rainers/subscriptions","organizations_url":"https://api.github.com/users/rainers/orgs","repos_url":"https://api.github.com/users/rainers/repos","events_url":"https://api.github.com/users/rainers/events{/privacy}","received_events_url":"https://api.github.com/users/rainers/received_events","type":"User","site_admin":false},"created_at":"2018-08-25T11:58:13Z","updated_at":"2018-08-25T11:58:13Z","author_association":"MEMBER","body":"> but the spec says: \"Functions nested inside safe functions default to being safe functions.\"\r\n\r\nI might be wrong but I don't think that applies to function literals which have all their attributes inferred. There needs to be no *default* because inference always yields a result.\r\n\r\n> Even if I'm misinterpreting, the @safe tests in phobos that declare @System delegates still have to fixed.\r\n\r\nYes, to verify `@safe` they should be calling the delegates by adding `()` after the closing braces.\r\n"}}
{"actor":{"display_login":"rainers"}}