Allow secondary constructors without body
#KT-6967 Fixed
This commit is contained in:
@@ -8,8 +8,7 @@ class A {
|
||||
fun foo() {
|
||||
}
|
||||
|
||||
constructor() {
|
||||
}
|
||||
constructor()
|
||||
|
||||
fun foo() {
|
||||
}
|
||||
@@ -55,8 +54,7 @@ class A {
|
||||
constructor() : this() {
|
||||
}
|
||||
|
||||
constructor() : this() {
|
||||
}
|
||||
constructor() : this()
|
||||
|
||||
constructor() : super() {
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@ class A {
|
||||
constructor() {}
|
||||
constructor() {}
|
||||
fun foo() {}
|
||||
constructor() {}
|
||||
constructor()
|
||||
fun foo() {}
|
||||
constructor() {}
|
||||
val x = 1
|
||||
@@ -26,6 +26,6 @@ constructor() {}
|
||||
constructor() : this() {}
|
||||
constructor():this() {}
|
||||
|
||||
constructor(): this () {}
|
||||
constructor(): this ()
|
||||
constructor(): super(){}
|
||||
}
|
||||
@@ -18,6 +18,8 @@ class A {
|
||||
{
|
||||
}
|
||||
|
||||
constructor()
|
||||
|
||||
constructor() {
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,6 +22,8 @@ class A
|
||||
{
|
||||
}
|
||||
|
||||
constructor()
|
||||
|
||||
constructor()
|
||||
{
|
||||
}
|
||||
|
||||
@@ -18,6 +18,7 @@ class A {
|
||||
|
||||
{}
|
||||
|
||||
constructor()
|
||||
constructor() {
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user