{"action":"closed","issue":{"url":"https://api.github.com/repos/atilaneves/unit-threaded/issues/8","labels_url":"https://api.github.com/repos/atilaneves/unit-threaded/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/atilaneves/unit-threaded/issues/8/comments","events_url":"https://api.github.com/repos/atilaneves/unit-threaded/issues/8/events","html_url":"https://github.com/atilaneves/unit-threaded/issues/8","id":73111149,"number":8,"title":"cast problem in safe code","user":{"login":"o3o","id":155032,"avatar_url":"https://avatars.githubusercontent.com/u/155032?v=3","gravatar_id":"","url":"https://api.github.com/users/o3o","html_url":"https://github.com/o3o","followers_url":"https://api.github.com/users/o3o/followers","following_url":"https://api.github.com/users/o3o/following{/other_user}","gists_url":"https://api.github.com/users/o3o/gists{/gist_id}","starred_url":"https://api.github.com/users/o3o/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/o3o/subscriptions","organizations_url":"https://api.github.com/users/o3o/orgs","repos_url":"https://api.github.com/users/o3o/repos","events_url":"https://api.github.com/users/o3o/events{/privacy}","received_events_url":"https://api.github.com/users/o3o/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-05-04T19:47:01Z","updated_at":"2015-05-11T16:22:47Z","closed_at":"2015-05-11T16:22:47Z","body":"When I compile:\r\n```d\r\nmodule tests.array;\r\n\r\nimport unit_threaded;\r\n\r\ninterface IService { }\r\nclass Service: IService { }\r\n\r\n@UnitTest\r\nvoid cast_not_allowed() {\r\n   IService x = new Service();\r\n   IService y = new Service();\r\n   checkEqual(x, y);\r\n}\r\n```\r\nthe compiler  complains:\r\n```sh\r\nunit-threaded/source/unit_threaded/check.d(36): Error: cast from const(IService) to const(Object) not allowed in safe code\r\nunit-threaded/source/unit_threaded/check.d(36): Error: cast from const(IService) to const(Object) not allowed in safe code\r\narray.d(13): Error: template instance unit_threaded.check.checkEqual!(IService, IService) error instantiating\r\n```\r\n\r\nMy compiler:\r\n```sh\r\n$ dmd --version\r\n\r\nDMD64 D Compiler v2.067\r\n```\r\n\r\nThank you"}}