Refine diagnostics reported on implicit constructor delegation call

- Do not report anything else if primary's call expected

- Do not repeat EXPLICIT_DELEGATION_CALL_REQUIRED

 #KT-7230 Fixed
This commit is contained in:
Denis Zharkov
2015-05-07 11:22:34 +03:00
parent 87be626848
commit 6df805d6f2
7 changed files with 62 additions and 1 deletions
@@ -0,0 +1,7 @@
// !DIAGNOSTICS: -UNUSED_PARAMETER
open class A(p1: String)
class B() : A("") {
<!PRIMARY_CONSTRUCTOR_DELEGATION_CALL_EXPECTED!>constructor(s: String)<!> {
}
}