IDEA-86672 Groovy compiler failed to make unable to resolve class SuccessfulCherryPickExecutor

This commit is contained in:
peter
2012-05-25 20:40:15 +02:00
parent d2d4c8cacc
commit 3eb681c26b
2 changed files with 16 additions and 4 deletions
@@ -544,10 +544,6 @@ public class GroovycRunner {
ensureWellFormed(field.getGenericType(), visited);
}
for (Class inner : aClass.getDeclaredClasses()) {
ensureWellFormed(inner, visited);
}
Type superclass = aClass.getGenericSuperclass();
if (superclass != null) {
ensureWellFormed(aClass, visited);
@@ -665,6 +665,22 @@ public class Main {
assert findClassFile("Client")
}
public void "test ignore groovy internal non-existent interface helper inner class"() {
myFixture.addFileToProject 'Foo.groovy', '''
interface Foo {}
class Zoo {
Foo foo() {}
static class Inner implements Foo {}
}
'''
def bar = myFixture.addFileToProject 'Bar.groovy', 'class Bar { def foo = new Zoo.Inner() {} }'
assertEmpty make()
assertEmpty compileFiles(bar.virtualFile)
}
public void "test multiline strings"() {
myFixture.addFileToProject 'Foo.groovy', '''class Foo {
public static final String s = """