skip icon indicating copy to clipboard operation
skip copied to clipboard

`ViewModifiers` with generics fail to build

Open piercifani opened this issue 5 months ago • 0 comments

When having:

struct PerformEquatableBlockingModifier<T: Equatable>: ViewModifier { ... }

I'm getting this on skip android build:

/Users/piercifani/Developer/BSWInterfaceKit/.build/plugins/outputs/bswinterfacekit/BSWInterfaceKit/destination/skipstone/SkipBridgeGenerated/BlockingTask_Bridge.swift:78:93: error: missing argument label 'content:' in call
 76 |     nonisolated func toTypeErased() -> AnyObject {
 77 |         let typeErased = PerformEquatableBlockingModifier_TypeErased(self)
 78 |         typeErased.body = { [unowned typeErased] in (typeErased.genericvalue as! Self).body($0) }
    |                                                                                             `- error: missing argument label 'content:' in call
 79 |         typeErased.Java_initState_taskError = { [unowned typeErased] in (typeErased.genericvalue as! Self).Java_initState_taskError() }
 80 |         typeErased.Java_syncState_taskError = { [unowned typeErased] in (typeErased.genericvalue as! Self).Java_syncState_taskError(support: $0) }

piercifani avatar Jul 17 '25 15:07 piercifani