Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent compiler inferring incorrect type
Summary: Fixes the build warning: ```react-native/React/Modules/RCTRedBox.m:406:58: Conversion from value of type 'NSArray<RCTJSStackFrame *> *' to incompatible type 'NSArray<NSDictionary *> *``` This appears because the compiler is left to infer the type of `stack`, and it does so as `NSArray<RCTJSStackFrame *>` based on [RCTRedBox.m#L390](https://github.com/facebook/react-native/blob/master/React/Modules/RCTRedBox.m#L390). In reality `stack` may be either of two types and the function body deals with normalisation. Mark the stack as explicitly `NSArray<id>` to prevent inference so we're free to make the decision to cast to more specific types. Closes #11807 Differential Revision: D4402916 fbshipit-source-id: 356343f244af7638b9b9e91c2c5b7e68de0cbd33
- Loading branch information