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
Describe the bug
If we define two resources with different type but same name, the build fails with an Overload resolution ambiguity as the initializer functions introduced in #4205 does not contain the type in its name.
e: ui/build/generated/compose/resourceGenerator/kotlin/ui/generated/resources/Res.kt:30:55 Overload resolution ambiguity:
private fun get_powered_by(): DrawableResource defined in ui.generated.resources in file Res.kt
private fun get_powered_by(): StringResource defined in ui.generated.resources in file Res.kt
e: ui/build/generated/compose/resourceGenerator/kotlin/ui/generated/resources/Res.kt:84:53 Overload resolution ambiguity:
private fun get_powered_by(): DrawableResource defined in package.ui.generated.resources in file Res.kt
private fun get_powered_by(): StringResource defined in ui.generated.resources in file Res.kt
e: ui/build/generated/compose/resourceGenerator/kotlin/ui/generated/resources/Res.kt:110:1 Conflicting overloads: private fun get_powered_by(): DrawableResource defined in ui.generated.resources in file Res.kt, private fun get_powered_by(): StringResource defined in ui.generated.resources in file Res.kt
e: ui/build/generated/compose/resourceGenerator/kotlin/ui/generated/resources/Res.kt:298:1 Conflicting overloads: private fun get_powered_by(): DrawableResource defined in ui.generated.resources in file Res.kt, private fun get_powered_by(): StringResource defined in ui.generated.resources in file Res.kt
This log is from my own project, redacted.
Affected platforms
All
Versions
Kotlin version*: 1.9.22
Compose Multiplatform version*: 1.6.0-dev1405
OS version(s)* (required for Desktop and iOS issues): macOS Sonoma 14.2.1
OS architecture (x86 or arm64): arm64
JDK (for desktop issues): Zulu 17
To Reproduce
Define two resources with different type but same name.
Expected behavior
The generated Res.kt file compiles.
The text was updated successfully, but these errors were encountered:
Describe the bug
If we define two resources with different type but same name, the build fails with an
Overload resolution ambiguity
as the initializer functions introduced in #4205 does not contain the type in its name.This log is from my own project, redacted.
Affected platforms
All
Versions
To Reproduce
Define two resources with different type but same name.
Expected behavior
The generated
Res.kt
file compiles.The text was updated successfully, but these errors were encountered: