-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dotnet
builds with net9.0
RC1 9.0.100-rc.1.24452.12 errors
#995
Comments
dotnet net9.0
RC1 9.0.100-rc.1.24452.12 errors dotnet
builds with net9.0
RC1 9.0.100-rc.1.24452.12 errors
The method it is failing on is: class StringsKt___StringsKt extends StringsKt___StringsJvmKt {
public static final <S extends CharSequence> S onEach(@NotNull S $this$onEach, @NotNull Function1 action) {
...
}
} While I didn't track down why this succeeds in .NET 8 and not .NET 9, I am asserting that the metadata we apply to this method is incorrect: <remove-node path="/api/package[@name='kotlin.text']/class[@name='StringsKt___StringsKt']/method[@name='onEach' and count(parameter)=2 and parameter[1][@type='S'] and parameter[2][@type='kotlin.jvm.functions.Function1<? super java.lang.Character, kotlin.Unit>']]/typeParameters" />
<attr path="/api/package[@name='kotlin.text']/class[@name='StringsKt___StringsKt']/method[@name='onEach' and count(parameter)=2 and parameter[1][@type='S'] and parameter[2][@type='kotlin.jvm.functions.Function1<? super java.lang.Character, kotlin.Unit>']]/parameter[1]" name="type">java.lang.CharSequence</attr> We are removing the generic type parameters from the method and fixing up the first parameter type of Thus we have: public static final S onEach(@NotNull CharSequence $this$onEach, @NotNull Function1 action) {
...
} There is no way to resolve <attr path="/api/package[@name='kotlin.text']/class[@name='StringsKt___StringsKt']/method[@name='onEach' and count(parameter)=2 and parameter[1][@type='S'] and parameter[2][@type='kotlin.jvm.functions.Function1<? super java.lang.Character, kotlin.Unit>']]" name="return">java.lang.CharSequence</attr> |
Android application type
Android for .NET (net6.0-android, etc.)
Affected platform version
net9.0
9.0.100-rc.1.24452.12Description
net9.0
build withpreview4
were green/OK.After update to RC1 local builds fail with following error:
Relevant log output
The text was updated successfully, but these errors were encountered: