View | Details | Raw Unified | Return to bug 89440
Collapse All | Expand All

(-)src/org/eclipse/jdt/core/tests/compiler/regression/GenericTypeTest.java (-1 / +52 lines)
Lines 18480-18484 Link Here
18480
			"	^^^^\n" + 
18480
			"	^^^^\n" + 
18481
			"Zork cannot be resolved to a type\n" + 
18481
			"Zork cannot be resolved to a type\n" + 
18482
			"----------\n");
18482
			"----------\n");
18483
	}				
18483
	}
18484
	
18485
	//https://bugs.eclipse.org/bugs/show_bug.cgi?id=89440	
18486
	public void test650() {
18487
	    this.runConformTest(
18488
            new String[] {
18489
				"p/A.java",
18490
				"package p;\n" +
18491
				"\n" +
18492
				"public interface A<V> {\n" +
18493
				"	public static enum Stuff {\n" +
18494
				"		FIRST, SECOND, THIRD\n" +
18495
				"	};\n" +
18496
				"}",
18497
            },
18498
            "");
18499
	    this.runConformTest(
18500
	    	new String[] {
18501
				"q/SampleClass2.java",
18502
				"package q;\n" +
18503
				"\n" +
18504
				"import p.A.Stuff;\n" +
18505
				"\n" +
18506
				"public class SampleClass2 {\n" +
18507
				"  public void doSomething(Stuff thing) {\n" +
18508
				"    \n" +
18509
				"  }\n" +
18510
				"}"
18511
            },
18512
			"",
18513
			null,
18514
			false,
18515
			null);
18516
		this.runConformTest(
18517
			new String[] {
18518
				"q/SampleClass3.java",
18519
				"package q;\n" +
18520
				"\n" +
18521
				"import p.A;\n" +
18522
				"\n" +
18523
				"public class SampleClass3 {\n" +
18524
				"	public void doSomething() {\n" +
18525
				"		SampleClass2 sample = new SampleClass2();\n" +
18526
				"		sample.doSomething(A.Stuff.FIRST);\n" +
18527
				"	}\n" +
18528
				"}",
18529
			},
18530
			"",
18531
			null,
18532
			false,
18533
			null);
18534
	}
18484
}
18535
}

Return to bug 89440