# HG changeset patch # User Kim Alvefur # Date 1660137050 -7200 # Node ID 608443cc765c404d0ecd4598b3471c14ccdb6c0e # Parent e43a01641ca1f1d492d5dad56017d1fa20c722a2 util.error: Use avoid name conflict in Teal interface declaration Naming things ... Thing or thing_t? diff -r e43a01641ca1 -r 608443cc765c teal-src/util/error.d.tl --- a/teal-src/util/error.d.tl Wed Aug 10 15:10:14 2022 +0200 +++ b/teal-src/util/error.d.tl Wed Aug 10 15:10:50 2022 +0200 @@ -38,7 +38,7 @@ code : integer end -local record error +local record Error type : error_type condition : error_condition text : string @@ -55,10 +55,10 @@ local record error_registry_wrapper source : string registry : registry - new : function (string, context) : error - coerce : function (any, string) : any, error - wrap : function (error) : error - wrap : function (string, context) : error + new : function (string, context) : Error + coerce : function (any, string) : any, Error + wrap : function (Error) : Error + wrap : function (string, context) : Error is_error : function (any) : boolean end @@ -66,12 +66,12 @@ record configure_opt auto_inject_traceback : boolean end - new : function (protoerror, context, { string : protoerror }, string) : error + new : function (protoerror, context, { string : protoerror }, string) : Error init : function (string, string, registry | compact_registry) : error_registry_wrapper init : function (string, registry | compact_registry) : error_registry_wrapper is_error : function (any) : boolean - coerce : function (any, string) : any, error - from_stanza : function (table, context, string) : error + coerce : function (any, string) : any, Error + from_stanza : function (table, context, string) : Error configure : function end