mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
prefer T if Class<? extends T> is expected (IDEA-121339)
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
import java.lang.Exception;
|
||||
|
||||
public class Foo {
|
||||
{
|
||||
foo(X<caret>)
|
||||
}
|
||||
|
||||
void foo(Class<? extends Throwable> c) {}
|
||||
}
|
||||
|
||||
interface XIntf {}
|
||||
class XClass {}
|
||||
Reference in New Issue
Block a user