mirror of
https://github.com/carp-lang/Carp.git
synced 2024-10-11 04:27:55 +03:00
BUGFIX: Handle refs and pointers in 'concretizeType'.
This commit is contained in:
parent
83314ec9d9
commit
531ad4de05
@ -352,6 +352,10 @@ concretizeType typeEnv genericStructTy@(StructTy name _) =
|
||||
error ("Non-deftype found in type env: " ++ show x)
|
||||
Nothing ->
|
||||
error ("Can't find type " ++ show genericStructTy ++ " with name '" ++ name ++ "' in type env.")
|
||||
concretizeType env (RefTy rt) =
|
||||
concretizeType env rt
|
||||
concretizeType env (PointerTy pt) =
|
||||
concretizeType env pt
|
||||
concretizeType _ t =
|
||||
Right [] -- ignore all other types
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user