Allow secondary constructors without body
#KT-6967 Fixed
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
class A<T1, T2> {
|
||||
constructor(block: (T1) -> T2) {}
|
||||
constructor(x: T2): this({ x }) {}
|
||||
constructor(block: (T1) -> T2)
|
||||
constructor(x: T2): this({ x })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user