{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/5760","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/5760/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/5760/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/5760/events","html_url":"https://github.com/Microsoft/TypeScript/issues/5760","id":118475286,"number":5760,"title":"Field annotation produces code without namespace name","user":{"login":"pankleks","id":14176066,"avatar_url":"https://avatars.githubusercontent.com/u/14176066?v=3","gravatar_id":"","url":"https://api.github.com/users/pankleks","html_url":"https://github.com/pankleks","followers_url":"https://api.github.com/users/pankleks/followers","following_url":"https://api.github.com/users/pankleks/following{/other_user}","gists_url":"https://api.github.com/users/pankleks/gists{/gist_id}","starred_url":"https://api.github.com/users/pankleks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pankleks/subscriptions","organizations_url":"https://api.github.com/users/pankleks/orgs","repos_url":"https://api.github.com/users/pankleks/repos","events_url":"https://api.github.com/users/pankleks/events{/privacy}","received_events_url":"https://api.github.com/users/pankleks/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/Needs%20More%20Info","name":"Needs More Info","color":"556b75"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-11-23T21:23:06Z","updated_at":"2015-12-02T21:50:04Z","closed_at":"2015-12-02T21:50:04Z","body":"Hi, I have function for annotation:\r\n\r\n```javascript\r\nnamespace planck {\r\n  export function Watch(fn: () => void) {\r\n      return function (target, key) { ... }\r\n  }\r\n}\r\n\r\nnamespace demo {\r\n  class Test {\r\n    @planck.Watch(function () { ... })\r\n    Name;\r\n  }\r\n}\r\n```\r\n\r\nIt compiles without any errors, but generates code without namespace \"planck\":\r\n\r\n```javascript\r\n            __decorate([\r\n                Watch(function () { ...\r\n```\r\n\r\nit should be:\r\n\r\n```javascript\r\n            __decorate([\r\n                planck.Watch(function () { ...\r\n```\r\n\r\nIt seems to work fine with class annotations.\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/comments/161444605","html_url":"https://github.com/Microsoft/TypeScript/issues/5760#issuecomment-161444605","issue_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/5760","id":161444605,"user":{"login":"pankleks","id":14176066,"avatar_url":"https://avatars.githubusercontent.com/u/14176066?v=3","gravatar_id":"","url":"https://api.github.com/users/pankleks","html_url":"https://github.com/pankleks","followers_url":"https://api.github.com/users/pankleks/followers","following_url":"https://api.github.com/users/pankleks/following{/other_user}","gists_url":"https://api.github.com/users/pankleks/gists{/gist_id}","starred_url":"https://api.github.com/users/pankleks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pankleks/subscriptions","organizations_url":"https://api.github.com/users/pankleks/orgs","repos_url":"https://api.github.com/users/pankleks/repos","events_url":"https://api.github.com/users/pankleks/events{/privacy}","received_events_url":"https://api.github.com/users/pankleks/received_events","type":"User","site_admin":false},"created_at":"2015-12-02T21:50:04Z","updated_at":"2015-12-02T21:50:04Z","body":"Installed 1.7 which seems to fix the issue.\r\n\r\nThanks a lot!"}}