Diagnostics: Fix range of DECLARATION_SIGNATURE diagnostics reported on secondary constructors

This commit is contained in:
Alexey Sedunov
2015-06-10 14:42:52 +03:00
parent 95438c7b5d
commit e1e1dd9413
4 changed files with 7 additions and 7 deletions
@@ -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)<!> {}
@@ -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()<!>