source: java2python/core/src/test/java/testcode/InnerClass.java

Last change on this file was 533, checked in by wouter, 17 months ago

#175 refuse translation of inner class calls

File size: 394 bytes
Line 
1package testcode;
2
3/**
4 * this will NOT compile because we do not support inner classes.
5 *
6 */
7public class InnerClass {
8
9 public InnerClass() throws ClassNotFoundException {
10 Inner i = new Inner();
11 System.out.println(i.f());
12 }
13
14 static public void main(String[] args) throws ClassNotFoundException {
15 new InnerClass();
16 }
17
18 public class Inner {
19 public int f() {
20 return 1;
21 }
22
23 }
24}
Note: See TracBrowser for help on using the repository browser.