[stdlib] Make @LowPriorityInOverloadResolution applicable to ctors
This commit is contained in:
+11
@@ -14,3 +14,14 @@ class Scope {
|
||||
fun Scope.bar(e: Foo) {
|
||||
e.test {}
|
||||
}
|
||||
|
||||
class Baz
|
||||
@Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
|
||||
@kotlin.internal.LowPriorityInOverloadResolution
|
||||
constructor(val x: Foo)
|
||||
|
||||
fun Baz(x: Foo): Baz {
|
||||
throw NotImplementedError()
|
||||
}
|
||||
|
||||
fun testBaz(e: Foo) = Baz(e)
|
||||
|
||||
+11
@@ -1,5 +1,7 @@
|
||||
package
|
||||
|
||||
public fun Baz(/*0*/ x: Foo): Baz
|
||||
public fun testBaz(/*0*/ e: Foo): Baz
|
||||
public fun Scope.bar(/*0*/ e: Foo): kotlin.Unit
|
||||
public fun Foo.test(): kotlin.Unit
|
||||
|
||||
@@ -10,6 +12,14 @@ public final class Bar {
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
public final class Baz {
|
||||
@kotlin.Suppress(names = {"INVISIBLE_MEMBER", "INVISIBLE_REFERENCE"}) @kotlin.internal.LowPriorityInOverloadResolution public constructor Baz(/*0*/ x: Foo)
|
||||
public final val x: Foo
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
public final class Foo {
|
||||
public constructor Foo()
|
||||
@kotlin.Suppress(names = {"INVISIBLE_MEMBER", "INVISIBLE_REFERENCE"}) @kotlin.internal.LowPriorityInOverloadResolution public final val test: Bar
|
||||
@@ -25,3 +35,4 @@ public final class Scope {
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
public final operator fun Bar.invoke(/*0*/ f: () -> kotlin.Unit): kotlin.Unit
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user