Rok: Unfortunately, that doesn't seem to help: fu...
# getting-started
s
Rok: Unfortunately, that doesn't seem to help: fun return_run(): String { return run { while (true) { return "hello" } } } test.kt4512: error: type inference failed. Expected type mismatch: inferred type is Unit but String was expected return run { ^ test.kt469: error: type mismatch: inferred type is Unit but String was expected while (true) { ^ (changing to
return@run
doesn't help; it changes the inferred type on the
return run
line to
Any
, though)