-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Description
dispatch_promise(^{
return 3;
}).then(^(NSInteger i) {
// …
});
This crashes here since the return type is obviously not id
.
I don't know what's the cleanest way to solve this. It's kind of acceptable that primitive types don't work. Maybe even leave it as-is and update the docs, or start supporting it?
(I caught this when accidentally returning "string"
instead of @"string"
. 🙈)
Metadata
Metadata
Assignees
Labels
No labels