Secondary constructors delegation calls and body resolve

This commit is contained in:
Denis Zharkov
2015-02-03 14:14:37 +03:00
parent b2cecf1dd0
commit 1555eec954
71 changed files with 1093 additions and 50 deletions
@@ -0,0 +1,17 @@
open class B<T> {
constructor(x: T = null!!) {}
}
class A : B<Int> {
<caret>constructor() {}
}
Resolved call:
Candidate descriptor: constructor B<T>(x: T = ...) defined in B
Resulting descriptor: constructor B<T>(x: Int = ...) defined in B
Explicit receiver kind = NO_EXPLICIT_RECEIVER
Dispatch receiver = NO_RECEIVER
Extension receiver = NO_RECEIVER