Secondary constructors delegation calls and body resolve
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
class A<T> {
|
||||
constructor(x: T) {}
|
||||
<caret>constructor(block: () -> T): this(block()) {}
|
||||
}
|
||||
|
||||
|
||||
Resolved call:
|
||||
|
||||
Candidate descriptor: constructor A<T>(x: T) defined in A
|
||||
Resulting descriptor: constructor A<T>(x: T) defined in A
|
||||
|
||||
Explicit receiver kind = NO_EXPLICIT_RECEIVER
|
||||
Dispatch receiver = NO_RECEIVER
|
||||
Extension receiver = NO_RECEIVER
|
||||
|
||||
Value arguments mapping:
|
||||
|
||||
SUCCESS x : T = block()
|
||||
Reference in New Issue
Block a user