Refine diagnostic about type arguments for an outer class

#KT-11263 Fixed
This commit is contained in:
Denis Zharkov
2016-09-14 12:33:27 +03:00
parent 7ca84649d7
commit 556df93ca7
9 changed files with 90 additions and 7 deletions
@@ -14,7 +14,7 @@ class A {
// Does not work, could be Outer<String>.Inner<Int>
// TODO: Should work?
fun foo(x: <!WRONG_NUMBER_OF_TYPE_ARGUMENTS!>Inner<!><Int>) {
fun foo(x: <!OUTER_CLASS_ARGUMENTS_REQUIRED!>Inner<!><Int>) {
// Inner<Char>() call use companion as implicit receiver
val y: Outer<String>.Inner<Char> = Inner<Char>()
}