mirror of
https://github.com/carp-lang/Carp.git
synced 2024-11-20 11:02:01 +03:00
fix: mangle member name in deletion generator (#1458)
This commit is contained in:
parent
ca5774b1ae
commit
ed2a4108c4
@ -921,7 +921,7 @@ concreteDeleteTakePtr typeEnv env members =
|
|||||||
memberDeletionGeneral :: String -> TypeEnv -> Env -> (String, Ty) -> String
|
memberDeletionGeneral :: String -> TypeEnv -> Env -> (String, Ty) -> String
|
||||||
memberDeletionGeneral separator typeEnv env (memberName, memberType) =
|
memberDeletionGeneral separator typeEnv env (memberName, memberType) =
|
||||||
case findFunctionForMember typeEnv env "delete" (typesDeleterFunctionType memberType) (memberName, memberType) of
|
case findFunctionForMember typeEnv env "delete" (typesDeleterFunctionType memberType) (memberName, memberType) of
|
||||||
FunctionFound functionFullName -> " " ++ functionFullName ++ "(p" ++ separator ++ memberName ++ ");"
|
FunctionFound functionFullName -> " " ++ functionFullName ++ "(p" ++ separator ++ mangle memberName ++ ");"
|
||||||
FunctionNotFound msg -> error msg
|
FunctionNotFound msg -> error msg
|
||||||
FunctionIgnored -> " /* Ignore non-managed member '" ++ memberName ++ "' : " ++ show memberType ++ " */"
|
FunctionIgnored -> " /* Ignore non-managed member '" ++ memberName ++ "' : " ++ show memberType ++ " */"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user