Fixed incorrect filtering of super constructors by visibility in Parameter Info
This commit is contained in:
@@ -336,6 +336,8 @@ public class CallResolver {
|
||||
assert !context.call.getExplicitReceiver().exists() :
|
||||
"Constructor can't be invoked with explicit receiver: " + context.call.getCallElement().getText();
|
||||
|
||||
context.trace.record(BindingContext.LEXICAL_SCOPE, context.call.getCallElement(), context.scope);
|
||||
|
||||
JetReferenceExpression functionReference = expression.getConstructorReferenceExpression();
|
||||
JetTypeReference typeReference = expression.getTypeReference();
|
||||
if (functionReference == null || typeReference == null) {
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
open class A(x: Int) {
|
||||
protected constructor() : this(1) {}
|
||||
private constructor(p: String) : this(2) {}
|
||||
}
|
||||
|
||||
class B(): A(<caret>5) {
|
||||
fun m() {
|
||||
A(3)
|
||||
}
|
||||
}
|
||||
//Text: (<highlight>x: Int</highlight>), Disabled: false, Strikeout: false, Green: true
|
||||
class B(): A(<caret>5)
|
||||
|
||||
/*
|
||||
Text: (<highlight>x: Int</highlight>), Disabled: false, Strikeout: false, Green: true
|
||||
Text: (<no parameters>), Disabled: true, Strikeout: false, Green: false
|
||||
*/
|
||||
Reference in New Issue
Block a user