Allow secondary constructors without body
#KT-6967 Fixed
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
class A {
|
||||
constructor(x: Any, y: Any, z: Any) {}
|
||||
constructor(x: Any, y: Any, z: Any)
|
||||
constructor(x: String?, y: String?): this(x!!, <!DEBUG_INFO_SMARTCAST!>x<!>.length().toString() + y!!, "") {
|
||||
<!DEBUG_INFO_SMARTCAST!>x<!>.length() + <!DEBUG_INFO_SMARTCAST!>y<!>.length()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user