[FIR] Report top-level conflicts between TA constructors and funs

^KT-59880
This commit is contained in:
Nikolay Lunyak
2023-09-05 15:10:17 +03:00
committed by Space Team
parent 01d4f25363
commit f719436d1f
4 changed files with 73 additions and 21 deletions
@@ -1,9 +1,9 @@
// !DIAGNOSTICS: -UNUSED_VARIABLE -UNUSED_PARAMETER -TOPLEVEL_TYPEALIASES_ONLY
class C(val x: Int)
typealias CC = C
<!CONFLICTING_OVERLOADS!>typealias CC = C<!>
fun CC(x: Int) = x
<!CONFLICTING_OVERLOADS!>fun CC(x: Int)<!> = x
class Outer {
class C(val x: Int)