mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-09 16:39:37 +07:00
method refs: reject constructor refs with 'receiver' syntax (IDEA-126484)
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
import java.util.function.*;
|
||||
|
||||
class ConstructorReferences {
|
||||
public ConstructorReferences() {}
|
||||
public ConstructorReferences(String s) {}
|
||||
public ConstructorReferences(String s1, String s2) {}
|
||||
public ConstructorReferences(ConstructorReferences other) {}
|
||||
public ConstructorReferences(ConstructorReferences other1, ConstructorReferences other2) {}
|
||||
|
||||
public static void main(String[] args) {
|
||||
Supplier<ConstructorReferences> supplier = ConstructorReferences::new;
|
||||
Function<String,ConstructorReferences> function = ConstructorReferences::new;
|
||||
BiFunction<String,String,ConstructorReferences> bifunction = ConstructorReferences::new;
|
||||
UnaryOperator<ConstructorReferences> unaryOperator = ConstructorReferences:: new;
|
||||
Function<ConstructorReferences,ConstructorReferences> unaryOperatorBaseClass = ConstructorReferences::new;
|
||||
BinaryOperator<ConstructorReferences> binaryOperator = ConstructorReferences::new;
|
||||
BiFunction<ConstructorReferences, ConstructorReferences, ConstructorReferences> binaryOperatorBaseClass = ConstructorReferences::new;
|
||||
Consumer<ConstructorReferences> consumer = ConstructorReferences::new;
|
||||
BiConsumer<ConstructorReferences,ConstructorReferences> biconsumer = ConstructorReferences::new;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user