[FIR] Use class scope to get constructors for redeclaration check
#KT-60793 Fixed
This commit is contained in:
committed by
Space Team
parent
e7c589a573
commit
0a469ff3b9
+11
-1
@@ -1,5 +1,13 @@
|
||||
// constructor vs. fun overload
|
||||
|
||||
// FILE: J.java
|
||||
package constructorVsFun;
|
||||
|
||||
public class J {
|
||||
public J(String s) {}
|
||||
}
|
||||
|
||||
// FILE: test.kt
|
||||
package constructorVsFun
|
||||
|
||||
class a<!CONFLICTING_OVERLOADS!>()<!> { }
|
||||
@@ -26,4 +34,6 @@ class Rtyu {
|
||||
companion object {
|
||||
class ololo() { }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
<!CONFLICTING_OVERLOADS!>fun J(s: String)<!> { }
|
||||
|
||||
@@ -1,5 +1,13 @@
|
||||
// constructor vs. fun overload
|
||||
|
||||
// FILE: J.java
|
||||
package constructorVsFun;
|
||||
|
||||
public class J {
|
||||
public J(String s) {}
|
||||
}
|
||||
|
||||
// FILE: test.kt
|
||||
package constructorVsFun
|
||||
|
||||
class a<!CONFLICTING_OVERLOADS!>()<!> { }
|
||||
@@ -26,4 +34,6 @@ class Rtyu {
|
||||
companion object {
|
||||
class ololo() { }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fun J(s: String) { }
|
||||
|
||||
@@ -1,8 +1,16 @@
|
||||
package
|
||||
|
||||
package constructorVsFun {
|
||||
public fun J(/*0*/ s: kotlin.String): kotlin.Unit
|
||||
public fun a(): kotlin.Int
|
||||
|
||||
public open class J {
|
||||
public constructor J(/*0*/ s: kotlin.String!)
|
||||
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 Rtyu {
|
||||
public constructor Rtyu()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
|
||||
Reference in New Issue
Block a user