Shabinder Singh
04/17/2021, 10:09 AMsubstring on undefined
while at compile time it is a String .
However when I add a redundant as String Cast the error disappears!
Any IDEA what could be the issue?
Anyway I reported the error to youtrack to here: https://youtrack.jetbrains.com/issue/KT-46157turansky
04/17/2021, 10:29 AMShabinder Singh
04/17/2021, 10:31 AMturansky
04/17/2021, 10:33 AMname parameter, which produce such errorsShabinder Singh
04/17/2021, 10:35 AMShabinder Singh
04/17/2021, 10:53 AMTarun Chawla
04/17/2021, 11:23 AMShabinder Singh
04/17/2021, 11:24 AMShabinder Singh
04/17/2021, 11:46 AMturansky
04/17/2021, 11:50 AMonly failing in Legacy mode but do pass in IR ModeDo you use
String file level constants?Shabinder Singh
04/17/2021, 11:52 AMturansky
04/17/2021, 12:14 PMas StringShabinder Singh
04/17/2021, 12:15 PMturansky
04/17/2021, 12:16 PMShabinder Singh
04/17/2021, 12:17 PMturansky
04/17/2021, 4:46 PMundefined stringsShabinder Singh
04/17/2021, 4:47 PMturansky
04/17/2021, 4:47 PMname in init block?turansky
04/17/2021, 4:48 PMinit {
println(name)
}turansky
04/17/2021, 4:51 PMid ?turansky
04/17/2021, 4:52 PMval id = name.substring(1).toInt()turansky
04/19/2021, 2:05 PMShabinder Singh
04/19/2021, 2:07 PM