[NI] Fix substitution for receiver when resolving constructor super call

This commit is contained in:
Mikhail Zarechenskiy
2018-01-21 01:32:31 +03:00
parent 2a0bb68e1c
commit 0e31162df4
6 changed files with 11 additions and 30 deletions
@@ -1,4 +1,3 @@
// !WITH_NEW_INFERENCE
// !DIAGNOSTICS: -UNUSED_PARAMETER
open class Super<T> {
inner open class Inner {
@@ -7,7 +6,7 @@ open class Super<T> {
class Sub : Super<String>() {
inner class SubInner : Super<String>.Inner {
constructor()<!NI;UNRESOLVED_REFERENCE_WRONG_RECEIVER!><!>
constructor(x: Int) : <!NI;UNRESOLVED_REFERENCE_WRONG_RECEIVER!>super<!>() {}
constructor()
constructor(x: Int) : super() {}
}
}