@@ -840,8 +840,11 @@ def test_with_all(self):
840
840
('operator *(s: string, n: integral) : string' , 'operator ' , None , '*' , 's: string, n: integral' , ' : string' , None ),
841
841
('inline operator string.==(param s0: string, param s1: string) param' , 'inline operator ' , 'string.' , '==' , 'param s0: string, param s1: string' , ' param' , None ),
842
842
('operator bytes.=(ref lhs: bytes, rhs: bytes) : void ' , 'operator ' , 'bytes.' , '=' , 'ref lhs: bytes, rhs: bytes' , ' : void ' , None ),
843
- # can't handle this pattern, ":" is set as punctuation, and casts don't seem to be doc'd anyway
844
- # ('operator :(x: bytes)', 'operator ', None, ':', 'x: bytes', None),
843
+ ('operator :(x: bytes)' , 'operator ' , None , ':' , 'x: bytes' , None , None ),
844
+ ('proc x: int' , 'proc ' , None , 'x' , None , ': int' , None ),
845
+ ('proc x ref: int' , 'proc ' , None , 'x' , None , ' ref: int' , None ),
846
+ ('proc foo.bar: int' , 'proc ' , 'foo.' , 'bar' , None , ': int' , None ),
847
+ ('proc foo.bar ref: int' , 'proc ' , 'foo.' , 'bar' , None , ' ref: int' , None ),
845
848
]
846
849
for sig , prefix , class_name , name , arglist , retann , where_clause in test_cases :
847
850
self .check_sig (sig , prefix , class_name , name , arglist , retann , where_clause )
0 commit comments