{"action":"closed","issue":{"url":"https://api.github.com/repos/kotlintest/kotlintest/issues/298","repository_url":"https://api.github.com/repos/kotlintest/kotlintest","labels_url":"https://api.github.com/repos/kotlintest/kotlintest/issues/298/labels{/name}","comments_url":"https://api.github.com/repos/kotlintest/kotlintest/issues/298/comments","events_url":"https://api.github.com/repos/kotlintest/kotlintest/issues/298/events","html_url":"https://github.com/kotlintest/kotlintest/issues/298","id":316464882,"number":298,"title":"\"Single-level\" FreeSpec-tests broken in version 3","user":{"login":"LimmaPaulus","id":14800398,"avatar_url":"https://avatars1.githubusercontent.com/u/14800398?v=4","gravatar_id":"","url":"https://api.github.com/users/LimmaPaulus","html_url":"https://github.com/LimmaPaulus","followers_url":"https://api.github.com/users/LimmaPaulus/followers","following_url":"https://api.github.com/users/LimmaPaulus/following{/other_user}","gists_url":"https://api.github.com/users/LimmaPaulus/gists{/gist_id}","starred_url":"https://api.github.com/users/LimmaPaulus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LimmaPaulus/subscriptions","organizations_url":"https://api.github.com/users/LimmaPaulus/orgs","repos_url":"https://api.github.com/users/LimmaPaulus/repos","events_url":"https://api.github.com/users/LimmaPaulus/events{/privacy}","received_events_url":"https://api.github.com/users/LimmaPaulus/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-04-21T05:50:33Z","updated_at":"2018-04-21T07:59:25Z","closed_at":"2018-04-21T07:59:25Z","author_association":"NONE","body":"After upgrading from 2.0.7 to 3.0.4, following code produces syntax error:\r\n\r\n```\r\nclass Tests : FreeSpec(){\r\n\r\n    init {\r\n        \"test should pass\"{\r\n        }\r\n    }\r\n}\r\n```\r\n\r\n\"Expression 'test should pass' of type 'String' cannot be invoked as a function. The function invoke() is not found\"\r\n\r\nThis works well:\r\n\r\n```\r\nclass Tests : FreeSpec() {\r\n    init {\r\n        \"test\" - {\r\n            \"should pass\"{\r\n            }\r\n        }\r\n    }\r\n}\r\n```\r\n\r\nI know that StringSpec provides this functionality, but I would like to mix these two styles in the same class."}}
{"actor":{"display_login":"LimmaPaulus"}}