File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -767,15 +767,7 @@ def __eq__(self, value):
767
767
return super ().__eq__ (value )
768
768
769
769
def to_model (self ) -> model .Term :
770
- # This cast is only neccessary because `Type` can both be an
771
- # actual type or a row variable.
772
- args = [cast (model .Term , arg .to_model ()) for arg in self .args ]
773
-
774
- extension_name = self .type_def .get_extension ().name
775
- type_name = self .type_def .name
776
- name = f"{ extension_name } .{ type_name } "
777
-
778
- return model .Apply (name , args )
770
+ return self ._to_opaque ().to_model ()
779
771
780
772
781
773
def _type_str (name : str , args : Sequence [TypeArg ]) -> str :
@@ -826,7 +818,7 @@ def to_model(self) -> model.Term:
826
818
# actual type or a row variable.
827
819
args = [cast (model .Term , arg .to_model ()) for arg in self .args ]
828
820
829
- return model .Apply (self .id , args )
821
+ return model .Apply (f" { self .extension } . { self . id } " , args )
830
822
831
823
832
824
@dataclass
You can’t perform that action at this time.
0 commit comments