Open wiyarmir opened 1 month ago
I've tried quickly adding Screen to the known parameters in the FactoryType.UI
case in computeFactoryData()
but I didn't understand the impact of modifying KSFunctionDeclaration.assistedParameters(...)
so it doesn't generate it twice
I think we should make this not generate invalid code, but out of curiosity - why do you need the object passed as a param given its singleton nature?
I was trying to make the simplest reproduction but with a data class it
also fails (but correctly uses a is
in the when case)
On Tue, 8 Oct 2024, 03:03 Zac Sweers, @.***> wrote:
I think we should make this not generate invalid code, but out of curiosity - why do you need the object passed as a param given its singleton nature?
— Reply to this email directly, view it on GitHub https://github.com/slackhq/circuit/issues/1704#issuecomment-2398493647, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABKANAPDRFADRAUAPNCGP3Z2M4OHAVCNFSM6AAAAABPLXJMMOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJYGQ4TGNRUG4 . You are receiving this because you authored the thread.Message ID: @.***>
Having a screen such as
generates
which is invalid because it mixes named and positional arguments
setup: no multiplatform, single module