{"action":"closed","issue":{"url":"https://api.github.com/repos/saffire/saffire/issues/273","labels_url":"https://api.github.com/repos/saffire/saffire/issues/273/labels{/name}","comments_url":"https://api.github.com/repos/saffire/saffire/issues/273/comments","events_url":"https://api.github.com/repos/saffire/saffire/issues/273/events","html_url":"https://github.com/saffire/saffire/issues/273","id":95240291,"number":273,"title":"Simplest example doesn't work, yet more complex ones do.","user":{"login":"Drarok","id":55830,"avatar_url":"https://avatars.githubusercontent.com/u/55830?v=3","gravatar_id":"","url":"https://api.github.com/users/Drarok","html_url":"https://github.com/Drarok","followers_url":"https://api.github.com/users/Drarok/followers","following_url":"https://api.github.com/users/Drarok/following{/other_user}","gists_url":"https://api.github.com/users/Drarok/gists{/gist_id}","starred_url":"https://api.github.com/users/Drarok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Drarok/subscriptions","organizations_url":"https://api.github.com/users/Drarok/orgs","repos_url":"https://api.github.com/users/Drarok/repos","events_url":"https://api.github.com/users/Drarok/events{/privacy}","received_events_url":"https://api.github.com/users/Drarok/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-15T16:50:11Z","updated_at":"2015-07-16T12:57:34Z","closed_at":"2015-07-16T12:57:34Z","body":"Consider this example:\r\n\r\n`test.sf`:\r\n```\r\nimport io;\r\nio.println(\"Hello\");\r\n```\r\n\r\nResult:\r\n```\r\nvagrant@vagrant-ubuntu-trusty-64:/vagrant/webserver$ saffire test.sf\r\n                          _   _\r\n                         | | (_)\r\n   _____  _____ ___ _ __ | |_ _  ___  _ __\r\n  / _ \\ \\/ / __/ _ \\ '_ \\| __| |/ _ \\| '_ \\\r\n |  __/>  < (_|  __/ |_) | |_| | (_) | | | |\r\n  \\___/_/\\_\\___\\___| .__/ \\__|_|\\___/|_| |_|\r\n                   | |\r\n                   |_|\r\n\r\n-------------------------------------------\r\n  Code: 1\r\n  Mesg: Identifier 'io' is not found\r\n-------------------------------------------\r\n#0 /vagrant/webserver/test.sf:2 \\. (<args>)\r\n-------------------------------------------\r\n```\r\n\r\nHowever, if you move the `import io` and references to it into a separate file and import _that_, it works!\r\n\r\n`works.sf`:\r\n```\r\nimport \\TestClass;\r\nts = TestClass();\r\n```\r\n\r\n`TestClass.sf`:\r\n```\r\nimport io;\r\nio.println(\"Hello!\");\r\n\r\nclass TestClass\r\n{\r\n    public method __ctor()\r\n    {\r\n        io.println(\"Created!\");\r\n    }\r\n}\r\n```\r\n\r\nResult:\r\n```\r\nvagrant@vagrant-ubuntu-trusty-64:/vagrant/webserver$ saffire works.sf\r\nHello!\r\nCreated!\r\n```"}}