Secondary constructors resolve

This commit is contained in:
Denis Zharkov
2015-02-02 12:44:32 +03:00
parent 8305d73682
commit b2cecf1dd0
38 changed files with 655 additions and 5 deletions
@@ -0,0 +1,23 @@
class A(x: Double) {
constructor(x: Int) {
}
constructor(x: String) {
}
}
<caret>A("abc")
Resolved call:
Resulting descriptor: constructor A(x: String) defined in A
Explicit receiver kind = NO_EXPLICIT_RECEIVER
Dispatch receiver = NO_RECEIVER
Extension receiver = NO_RECEIVER
Value arguments mapping:
SUCCESS x : String = "abc"