aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs161/pr227401/Works.java
blob: e8e31d20631e71945b6d5e85294ada30d94e6881 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
public class Works {

	interface I {
		static final int CONST = 56;
	}

	static class A {
		protected int prot;
		protected String protS;
		int def;
		String defS;
		String foo;
	}

	static class B extends A implements I {
		void m() {
//			// protected
//			super.prot = 1;
//			super.protS = "1";
//			System.out.println(super.protS + super.prot);
			prot = 2;
			protS = "2";
			System.out.println(protS + prot);
//			// default
//			super.def = 3;
//			super.defS = "3";
//			System.out.println(defS + def);
//			def = 4;
//			defS = "4";
//			foo = "todo";
//			System.out.println(defS + def);
//			// interface
//			System.out.println(CONST);
		}
	}

	public static void main(String[] args) {
		B b = new B();
		b.m();
	}
}