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

Last change on this file since 519 was 498, checked in by wouter, 18 months ago

add random test to Math

File size: 369 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.