You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And then build it. The editor would throw build errors at Single.create line:
at end of `Single.create`:
Not enough information to infer type variable T
at start of `single`:
Cannot infer a type for this parameter. Please specify it explicitly.
If I specify the type, the build errors will disappear:
Android Studio Chipmunk | 2021.2.1 Patch 1
Build #AI-212.5712.43.2112.8609683, built on May 19, 2022
Kotlin Plugin:
212-1.7.10-release-333-AS5457.46
The text was updated successfully, but these errors were encountered:
samuelchou
changed the title
delay extension reduces type detection (for Observable.create extension series)delay extension reduces type detection (for Observable.create series)
Aug 18, 2022
It seems that kotlin type recognition for
Observable.create
extension series will fail, after addingdelay
functions.For example, consider code below:
Everything works fine.
Now, if I add
.delay
behind:And then build it. The editor would throw build errors at
Single.create
line:If I specify the type, the build errors will disappear:
However, some editor/kotlin plugin might suggest to "Remove explicit type arguments" then.
These errors seems not only happen at
Single.create
, but also atObservable.create
. I guess the errors happen in all.create
series?Versions
I'm using
3.0.1
in Android Studio.All Rx related version:
The editor and plugin version:
The text was updated successfully, but these errors were encountered: