[FIR] Introduce WRONG_NUMBER_OF_TYPE_ARGUMENTS diagnostic

This commit is contained in:
Mikhail Glukhikh
2020-07-27 12:53:38 +03:00
parent 0804c6a0f3
commit 551bdd267d
11 changed files with 17 additions and 13 deletions
@@ -46,5 +46,5 @@ interface Test<in I, out O, P> {
fun neOk32(i: <!OTHER_ERROR!>Inv<!>)
fun neOk33(i: Inv<<!SYNTAX!><!>>)
fun neOk34(i: <!OTHER_ERROR!>Inv<C><!>)
fun neOk35(i: <!OTHER_ERROR!>Inv<P, P><!>)
fun neOk35(i: <!WRONG_NUMBER_OF_TYPE_ARGUMENTS!>Inv<P, P><!>)
}
@@ -43,5 +43,5 @@ interface Test<in I, out O, P> {
var neOk32: <!OTHER_ERROR, OTHER_ERROR, OTHER_ERROR!>Inv<!>
var neOk33: Inv<<!SYNTAX!><!>>
var neOk34: <!OTHER_ERROR, OTHER_ERROR, OTHER_ERROR!>Inv<C><!>
var neOk35: <!OTHER_ERROR, OTHER_ERROR, OTHER_ERROR!>Inv<P, P><!>
var neOk35: <!WRONG_NUMBER_OF_TYPE_ARGUMENTS, WRONG_NUMBER_OF_TYPE_ARGUMENTS, WRONG_NUMBER_OF_TYPE_ARGUMENTS!>Inv<P, P><!>
}
@@ -38,5 +38,5 @@ interface Test<in I, out O, P> {
fun neOk32(): <!OTHER_ERROR!>Inv<!>
fun neOk33(): Inv<<!SYNTAX!><!>>
fun neOk34(): <!OTHER_ERROR!>Inv<C><!>
fun neOk35(): <!OTHER_ERROR!>Inv<P, P><!>
fun neOk35(): <!WRONG_NUMBER_OF_TYPE_ARGUMENTS!>Inv<P, P><!>
}