source:
java2python/core/test/testcode/Static.py@
519
Last change on this file since 519 was 498, checked in by , 18 months ago | |
---|---|
File size: 369 bytes |
Line | |
---|---|
1 | import sys |
2 | from typing import List |
3 | |
4 | |
5 | class 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 | |
19 | if __name__ == "__main__": |
20 | Static.main(sys.argv[1:]) |
Note:
See TracBrowser
for help on using the repository browser.