c970763a7f
The regression appeared after
b5a8ffaddc
when we started trying both static and member methods until
first success and when there is no successful
we were just leaving the last one (e.g. private member)
But the actual problem is that we were commiting the trace
in case of single (but incorrect) result in resolution mode of
SHAPE_FUNCTION_ARGUMENTS when we couldn't yet choose the
correct static method
Also we shouldn't choose a shape for callable reference
using only the knowledge that result is single:
it may lead to the wrong inference result
(see test with Pattern::compile)
#KT-17597 Fixed
17 lines
600 B
Plaintext
Vendored
17 lines
600 B
Plaintext
Vendored
package
|
|
|
|
public fun bar(): kotlin.Unit
|
|
public fun baz(/*0*/ x: (kotlin.String) -> kotlin.Unit): kotlin.Unit
|
|
|
|
public open class A {
|
|
public constructor A()
|
|
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
|
private open fun foo(/*0*/ y: kotlin.Int): kotlin.Unit
|
|
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
|
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
|
|
|
// Static members
|
|
public open fun foo(): kotlin.Unit
|
|
public open fun foo(/*0*/ x: kotlin.String!): kotlin.Unit
|
|
}
|