source: java2python/core/test/testcode/Static.py@ 484

Last change on this file since 484 was 473, checked in by wouter, 18 months ago

#126 Added CommentBlock to clean up the messy comment handling code.

File size: 366 bytes
Line 
1import sys
2from typing import List
3
4
5class Static:
6 # Tests static function calls and references
7 OK:str = "OK"
8 @staticmethod
9 def __f() -> str:
10 return Static.OK
11 @staticmethod
12 def main(args:List[str]) -> None:
13 '''
14
15 @param args the arguments of the call.
16 '''
17 sys.stdout.write(Static.__f()+'\n')
18
19if __name__ == "__main__":
20 Static.main(sys.argv[1:])
Note: See TracBrowser for help on using the repository browser.