mirror of
https://github.com/Mercury-Language/mercury.git
synced 2025-12-16 06:14:59 +00:00
Fix bug - polymorphic types are not atomic!
type_util.nl: Fix bug - polymorphic types are not atomic!
This commit is contained in:
@@ -90,6 +90,7 @@ type_util__type_id_arity(_ModuleInfo, _Name - Arity, Arity).
|
||||
|
||||
type_is_atomic(Type, ModuleInfo) :-
|
||||
classify_type(Type, ModuleInfo, BuiltinType),
|
||||
BuiltinType \= polymorphic_type,
|
||||
BuiltinType \= pred_type,
|
||||
BuiltinType \= user_type(_).
|
||||
|
||||
|
||||
Reference in New Issue
Block a user