summaryrefslogtreecommitdiff
path: root/plugins/typeMigration/testData/refactoring/migrateTypeSignature/exprNewReference/before/Expr.java
blob: ed03e4ddc1d363c54af3625b71532ad8d0bc5778 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
class Expr {
	private class Ancestor {}
	private class Subject extends Ancestor {}
	private class Descendant extends Subject {}

	private Ancestor myField;

	public void meth() {
		myField = new Ancestor();
		myField = this.new Ancestor();
		myField = new Ancestor() {};

		myField = new Subject();
		myField = this.new Subject();
		myField = new Subject() {};

		myField = new Descendant();
		myField = this.new Descendant();
		myField = new Descendant() {};
	}
}