Generate constructor without parameters if primary constructor has only parameters with default values
#KT-3085 Fixed
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
class Simple {
|
||||
void foo() {
|
||||
new A();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
class A(val a: Int = 1)
|
||||
@@ -0,0 +1,5 @@
|
||||
class Simple {
|
||||
void foo() {
|
||||
new A();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
class A(val a: Int = 1, val b: String = "default")
|
||||
Reference in New Issue
Block a user