{"action":"opened","issue":{"url":"https://api.github.com/repos/martypitt/typescript4j/issues/14","repository_url":"https://api.github.com/repos/martypitt/typescript4j","labels_url":"https://api.github.com/repos/martypitt/typescript4j/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/martypitt/typescript4j/issues/14/comments","events_url":"https://api.github.com/repos/martypitt/typescript4j/issues/14/events","html_url":"https://github.com/martypitt/typescript4j/issues/14","id":299728325,"number":14,"title":"Typescript4j cannot compile the standard example","user":{"login":"dustpuppyNGTI","id":18213829,"avatar_url":"https://avatars2.githubusercontent.com/u/18213829?v=4","gravatar_id":"","url":"https://api.github.com/users/dustpuppyNGTI","html_url":"https://github.com/dustpuppyNGTI","followers_url":"https://api.github.com/users/dustpuppyNGTI/followers","following_url":"https://api.github.com/users/dustpuppyNGTI/following{/other_user}","gists_url":"https://api.github.com/users/dustpuppyNGTI/gists{/gist_id}","starred_url":"https://api.github.com/users/dustpuppyNGTI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dustpuppyNGTI/subscriptions","organizations_url":"https://api.github.com/users/dustpuppyNGTI/orgs","repos_url":"https://api.github.com/users/dustpuppyNGTI/repos","events_url":"https://api.github.com/users/dustpuppyNGTI/events{/privacy}","received_events_url":"https://api.github.com/users/dustpuppyNGTI/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-23T14:26:48Z","updated_at":"2018-02-23T14:26:48Z","closed_at":null,"author_association":"NONE","body":"On the example page (https://www.typescriptlang.org/docs/handbook/typescript-in-5-minutes.html) for typescript there is some simple code. This code cannot be compiled by typescript4j.\r\n\r\n    public class TypeScriptTest {\r\n        private static final String code =\r\n            \"function greeter(person) {\\n\" +\r\n            \"    return \\\"Hello, \\\" + person;\\n\" +\r\n            \"}\\n\" +\r\n            \"var user = \\\"Jane User\\\";\\n\" +\r\n            \"document.body.innerHTML = greeter(user);\\n\";\r\n\r\n        public static void main(final String... args) {\r\n            final TypescriptCompiler typescript = new TypescriptCompiler();\r\n            typescript.setEcmaScriptVersion(EcmaScriptVersion.ES5);\r\n            typescript.compile(code);\r\n        }\r\n    }\r\n\r\nThis results in the following error:\r\n\r\n    [  Envjs/1.6 (Rhino; U; Mac OS X x86_64 10.12.6; en-US; rv:1.7.0.rc2) Resig/20070309 PilotFish/1.2.13  ]\r\n    [main] ERROR com.mangofactory.typescript.TypescriptCompiler - Failed to initialize Typescript compiler\r\n    error on line 652: missing name after . operator\r\n            Errors.abstract = function () {\r\n"}}
{"actor":{"display_login":"dustpuppyNGTI"}}