[ios, macos] Corrected MGLStyleValue inheritance
MGLStyleConstantValue and MGLStyleFunction now inherit from MGLStyleValue with a generic argument matching the child class’s own generic argument. Fixes #6823.
This commit is contained in:
committed by
Minh Nguyễn
parent
dc884cd6c3
commit
62647a013f
@@ -68,7 +68,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
The `MGLStyleConstantValue` class takes a generic parameter `T` that indicates
|
||||
the Foundation class being wrapped by this class.
|
||||
*/
|
||||
@interface MGLStyleConstantValue<T> : MGLStyleValue
|
||||
@interface MGLStyleConstantValue<T> : MGLStyleValue<T>
|
||||
|
||||
#pragma mark Creating a Style Constant Value
|
||||
|
||||
@@ -111,7 +111,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
The `MGLStyleFunction` class takes a generic parameter `T` that indicates the
|
||||
Foundation class being wrapped by this class.
|
||||
*/
|
||||
@interface MGLStyleFunction<T> : MGLStyleValue
|
||||
@interface MGLStyleFunction<T> : MGLStyleValue<T>
|
||||
|
||||
#pragma mark Creating a Style Function
|
||||
|
||||
|
||||
Reference in New Issue
Block a user