source:
java2python/core/src/test/java/testcode/NameConflict.java
Last change on this file was 577, checked in by , 17 months ago | |
---|---|
File size: 341 bytes |
Line | |
---|---|
1 | package testcode; |
2 | |
3 | /** |
4 | * This class will have a name conflict in python |
5 | * |
6 | * |
7 | */ |
8 | public class NameConflict { |
9 | private final int f; |
10 | |
11 | public NameConflict(int f) { |
12 | this.f = f; |
13 | System.out.println(f(1) == 1 ? "ok" : "ko"); |
14 | } |
15 | |
16 | private int f(int x) { |
17 | return x; |
18 | } |
19 | |
20 | static public void main(String[] args) { |
21 | new NameConflict(1); |
22 | } |
23 | |
24 | } |
Note:
See TracBrowser
for help on using the repository browser.