Skip to content

Commit

Permalink
[FIR] Revert inner modifier from typealias in incremental test-data
Browse files Browse the repository at this point in the history
It was advised by aleksei.cherepanov@jetbrains.com some time ago,
and this modifier is not needed because RHS doesn't have outer type parameters
(top-level type aliases with inner RHS are supported).

Also, it simplifies nested typealias bug-fixing
because `inner` typealias is not going to be supported in the nearest future.
  • Loading branch information
KvanTTT authored and Space Team committed Dec 3, 2024
1 parent 62afeaf commit 11f625c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ package a
class Outer {
inner class B(x: String)

@Suppress("TOPLEVEL_TYPEALIASES_ONLY", "WRONG_MODIFIER_TARGET")
inner typealias A1 = B
@Suppress("TOPLEVEL_TYPEALIASES_ONLY", "WRONG_MODIFIER_TARGET")
private inner typealias A2 = B
@Suppress("TOPLEVEL_TYPEALIASES_ONLY")
typealias A1 = B
@Suppress("TOPLEVEL_TYPEALIASES_ONLY")
private typealias A2 = B

fun A1(x: Any) = x
fun A2(x: Any) = x
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ package a
class Outer {
inner class B(x: String)

@Suppress("TOPLEVEL_TYPEALIASES_ONLY", "WRONG_MODIFIER_TARGET")
inner typealias A1 = B
@Suppress("TOPLEVEL_TYPEALIASES_ONLY")
typealias A1 = B

@Suppress("TOPLEVEL_TYPEALIASES_ONLY", "WRONG_MODIFIER_TARGET")
private inner typealias A2 = B
@Suppress("TOPLEVEL_TYPEALIASES_ONLY")
private typealias A2 = B

fun A1(x: Any) = x
fun A2(x: Any) = x
Expand Down

0 comments on commit 11f625c

Please sign in to comment.