Find Usages: Support primary constructors
#KT-7881 Fixed
This commit is contained in:
+14
@@ -0,0 +1,14 @@
|
||||
open class A (n: Int) {
|
||||
constructor(): this(1)
|
||||
}
|
||||
|
||||
class B: A {
|
||||
constructor(n: Int): super(n)
|
||||
}
|
||||
|
||||
class C(): A(1)
|
||||
|
||||
fun test() {
|
||||
A()
|
||||
A(1)
|
||||
}
|
||||
Reference in New Issue
Block a user