[FIR] Fix positioning and detecting of WRONG_NUMBER_OF_TYPE_ARGUMENTS
Refactor code and fix compilation errors caused by changes to symbol.fir
This commit is contained in:
committed by
TeamCityServer
parent
345152d198
commit
dd54338ec0
Vendored
+3
-3
@@ -6,7 +6,7 @@ package p
|
||||
|
||||
public class A<X, Y>
|
||||
public class M1 {
|
||||
public val a: <!WRONG_NUMBER_OF_TYPE_ARGUMENTS!>A<Int><!> = A<Int, Int>()
|
||||
public val a: A<!WRONG_NUMBER_OF_TYPE_ARGUMENTS!><Int><!> = A<Int, Int>()
|
||||
}
|
||||
|
||||
// MODULE: m2
|
||||
@@ -16,7 +16,7 @@ package p
|
||||
|
||||
public class A<X, Y>
|
||||
|
||||
public fun foo(a: <!WRONG_NUMBER_OF_TYPE_ARGUMENTS!>A<Int><!>) {
|
||||
public fun foo(a: A<!WRONG_NUMBER_OF_TYPE_ARGUMENTS!><Int><!>) {
|
||||
}
|
||||
|
||||
// MODULE: m3(m1, m2)
|
||||
@@ -27,4 +27,4 @@ import p.*
|
||||
fun test() {
|
||||
foo(M1().a)
|
||||
foo(1) // error type on the declaration site
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user