Diagnostics: Fix range of DECLARATION_SIGNATURE diagnostics reported on secondary constructors
This commit is contained in:
Vendored
+1
-1
@@ -1,6 +1,6 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
class C {
|
||||
<!OVERLOADS_WITHOUT_DEFAULT_ARGUMENTS!>@kotlin.jvm.jvmOverloads constructor()<!> {
|
||||
@kotlin.jvm.jvmOverloads <!OVERLOADS_WITHOUT_DEFAULT_ARGUMENTS!>constructor()<!> {
|
||||
}
|
||||
|
||||
<!OVERLOADS_WITHOUT_DEFAULT_ARGUMENTS!>@kotlin.jvm.jvmOverloads fun foo(s: String)<!> {}
|
||||
|
||||
+3
-3
@@ -1,9 +1,9 @@
|
||||
import kotlin.platform.platformStatic
|
||||
class A {
|
||||
<!PLATFORM_STATIC_ILLEGAL_USAGE!>platformStatic constructor()<!> {}
|
||||
platformStatic <!PLATFORM_STATIC_ILLEGAL_USAGE!>constructor()<!> {}
|
||||
inner class B {
|
||||
<!PLATFORM_STATIC_ILLEGAL_USAGE!>platformStatic constructor()<!> {}
|
||||
platformStatic <!PLATFORM_STATIC_ILLEGAL_USAGE!>constructor()<!> {}
|
||||
}
|
||||
}
|
||||
|
||||
class C platformStatic <!PLATFORM_STATIC_ILLEGAL_USAGE!>constructor()<!>
|
||||
class C platformStatic <!PLATFORM_STATIC_ILLEGAL_USAGE!>constructor()<!>
|
||||
Reference in New Issue
Block a user