Fix constructors redeclaration message
#KT-6966 Fixed
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
// !DIAGNOSTICS_NUMBER: 2
|
||||
// !DIAGNOSTICS: CONFLICTING_OVERLOADS
|
||||
// !MESSAGE_TYPE: TEXT
|
||||
class Element {
|
||||
constructor(x : String) {}
|
||||
constructor(x : String) {}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
<!-- constructorsRedeclaration1 -->
|
||||
'public constructor Element(x: kotlin.String)' is already defined in Element
|
||||
@@ -0,0 +1,2 @@
|
||||
<!-- constructorsRedeclaration2 -->
|
||||
'public constructor Element(x: kotlin.String)' is already defined in Element
|
||||
@@ -0,0 +1,7 @@
|
||||
// !DIAGNOSTICS_NUMBER: 2
|
||||
// !DIAGNOSTICS: CONFLICTING_OVERLOADS
|
||||
// !MESSAGE_TYPE: TEXT
|
||||
fun Element(x: String) {}
|
||||
class Element {
|
||||
constructor(x : String) {}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
<!-- constructorsRedeclarationTopLevel1 -->
|
||||
'internal fun Element(x: kotlin.String): kotlin.Unit' is already defined in root package
|
||||
@@ -0,0 +1,2 @@
|
||||
<!-- constructorsRedeclarationTopLevel2 -->
|
||||
'public constructor Element(x: kotlin.String)' is already defined in Element
|
||||
Reference in New Issue
Block a user