create class from usage: types in wildcard bounds accepted (IDEA-50310 )

This commit is contained in:
anna
2011-08-22 18:37:08 +02:00
parent 9d4f40f5f5
commit 1615e8f030
3 changed files with 21 additions and 1 deletions

View File

@@ -0,0 +1,10 @@
// "Create Class 'Foo'" "true"
import java.util.Collection;
public class Test {
public Collection<? extends Foo> getSomething() {
return null;
}
}
public class <caret>Foo {
}

View File

@@ -0,0 +1,7 @@
// "Create Class 'Foo'" "true"
import java.util.Collection;
public class Test {
public Collection<? extends Fo<caret>o> getSomething() {
return null;
}
}