{"action":"created","issue":{"url":"https://api.github.com/repos/JetBrains/kotlin-native/issues/2225","repository_url":"https://api.github.com/repos/JetBrains/kotlin-native","labels_url":"https://api.github.com/repos/JetBrains/kotlin-native/issues/2225/labels{/name}","comments_url":"https://api.github.com/repos/JetBrains/kotlin-native/issues/2225/comments","events_url":"https://api.github.com/repos/JetBrains/kotlin-native/issues/2225/events","html_url":"https://github.com/JetBrains/kotlin-native/issues/2225","id":371077442,"node_id":"MDU6SXNzdWUzNzEwNzc0NDI=","number":2225,"title":"Companion Object property change from Swift gives ThrowInvalidMutabilityException at Internal.kt","user":{"login":"Syrou","id":4949225,"node_id":"MDQ6VXNlcjQ5NDkyMjU=","avatar_url":"https://avatars2.githubusercontent.com/u/4949225?v=4","gravatar_id":"","url":"https://api.github.com/users/Syrou","html_url":"https://github.com/Syrou","followers_url":"https://api.github.com/users/Syrou/followers","following_url":"https://api.github.com/users/Syrou/following{/other_user}","gists_url":"https://api.github.com/users/Syrou/gists{/gist_id}","starred_url":"https://api.github.com/users/Syrou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Syrou/subscriptions","organizations_url":"https://api.github.com/users/Syrou/orgs","repos_url":"https://api.github.com/users/Syrou/repos","events_url":"https://api.github.com/users/Syrou/events{/privacy}","received_events_url":"https://api.github.com/users/Syrou/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-10-17T13:32:48Z","updated_at":"2018-10-18T09:16:01Z","closed_at":null,"author_association":"NONE","body":"This kotlin-native code:\r\n```\r\nclass MahSingleton {\r\n    companion object {\r\n       var randomText:String\r\n       fun setKex(text:String){\r\n            randomText = text\r\n        }\r\n    }\r\n}\r\n```\r\n\r\nExporting this code as a iOS Framework and running this:\r\n\r\n```\r\nvar singleton: MahSingleton.Companion = MahSingleton.Companion.init()\r\nsingleton.setKex(text: \"WHAT\")\r\n```\r\n(FYI: Same with running MahSingleton.Companion() instead of using .init() )\r\n\r\n\r\nGives \r\n```\r\nkfun:kotlin.native.concurrent.InvalidMutabilityException.<init>(kotlin.String)kotlin.native.concurrent.InvalidMutabilityException at Freezing.kt\r\n```\r\n\r\nWhile working just fine if you try to run the same code from Android. Why does it crash on iOS?\r\n\r\nRunning version '0.9.2' of kotlin-native"},"comment":{"url":"https://api.github.com/repos/JetBrains/kotlin-native/issues/comments/430936441","html_url":"https://github.com/JetBrains/kotlin-native/issues/2225#issuecomment-430936441","issue_url":"https://api.github.com/repos/JetBrains/kotlin-native/issues/2225","id":430936441,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMDkzNjQ0MQ==","user":{"login":"Alex009","id":5010169,"node_id":"MDQ6VXNlcjUwMTAxNjk=","avatar_url":"https://avatars2.githubusercontent.com/u/5010169?v=4","gravatar_id":"","url":"https://api.github.com/users/Alex009","html_url":"https://github.com/Alex009","followers_url":"https://api.github.com/users/Alex009/followers","following_url":"https://api.github.com/users/Alex009/following{/other_user}","gists_url":"https://api.github.com/users/Alex009/gists{/gist_id}","starred_url":"https://api.github.com/users/Alex009/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alex009/subscriptions","organizations_url":"https://api.github.com/users/Alex009/orgs","repos_url":"https://api.github.com/users/Alex009/repos","events_url":"https://api.github.com/users/Alex009/events{/privacy}","received_events_url":"https://api.github.com/users/Alex009/received_events","type":"User","site_admin":false},"created_at":"2018-10-18T09:16:01Z","updated_at":"2018-10-18T09:16:01Z","author_association":"NONE","body":"@olonho maybe add this expect/actual realization in stdlib? When use multiplatform with native it's really needed to mark mutability annotations in common code.\r\nOr maybe create multiplatform-additions library with this declaration and other useful..."}}
{"actor":{"display_login":"Alex009"}}