Klitos Kyriacou
05/17/2022, 10:17 AMStringval x = foo()?: StringStringNorbi
05/17/2022, 10:35 AMbeginners in Kotlin writing code likeThey must have been veeery beginners, and probably the code haven't compiled anyway... :)
whose only purpose is to allow extension functionsI think this is a related issue: https://youtrack.jetbrains.com/issue/KT-11968
Klitos Kyriacou
05/17/2022, 11:52 AMThey must have been veeery beginners, and probably the code haven't compiled anyway... :)Not at all, they had been using Kotlin for more than a month, and the code compiled perfectly. It just didn't appear quite right when used like
"... $x ..."Mikhail
05/17/2022, 1:49 PMKlitos Kyriacou
05/17/2022, 2:04 PMString.format(...)String.Companion.formatformatphantom companion objectvar x = StringStringMikhail
05/17/2022, 2:08 PMphantomKlitos Kyriacou
05/17/2022, 2:26 PMphantomvar mystring = String.format("%4d", n)var x = StringString.formatMikhail
05/17/2022, 2:35 PMphantom fun String.customFormat(...) = ...Klitos Kyriacou
05/17/2022, 2:39 PMphantomphantomvar x = StringMikhail
05/17/2022, 2:52 PMRuckus
05/17/2022, 4:36 PMphantomnamespaceKlitos Kyriacou
05/17/2022, 4:39 PMnamespacenamespacegildor
05/18/2022, 7:18 AMMikhail
05/18/2022, 7:21 AMgildor
05/18/2022, 7:22 AMMikhail
05/18/2022, 7:30 AMgildor
05/18/2022, 8:14 AMgildor
05/18/2022, 8:14 AM