Skip to content

Commit 7fe4115

Browse files
committed
Remove Kotlin 1.5.10 recursion error workaround from README #5
1 parent 8ec8b78 commit 7fe4115

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

README.md

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -59,20 +59,6 @@ plugins {
5959
}
6060
```
6161

62-
#### Kotlin 1.5.10
63-
64-
In Kotlin 1.5.10 you might get a recursion error during compilation (see [#4](https://github.com/rickclephas/KMP-NativeCoroutines/issues/4)).
65-
The issue is with implicit return types. To fix this you should use explicit return types for your public API:
66-
```kotlin
67-
private val _time = MutableStateFlow(0L)
68-
69-
// The following will generate a recursion error in Kotlin 1.5.10
70-
val time = _time.asStateFlow()
71-
72-
// Specifying the return type fixes the recursion
73-
val time: StateFlow<Long> = _time.asStateFlow()
74-
```
75-
7662
### Swift
7763

7864
Now for Swift you can choose from a couple of implementations.

0 commit comments

Comments
 (0)