Skip to content

Commit

Permalink
[Tests] Add a test on nested type aliases to check if `TOPLEVEL_TYPEA…
Browse files Browse the repository at this point in the history
…LIASES_ONLY` is reported

^KT-73088 Fixed
  • Loading branch information
KvanTTT authored and Space Team committed Nov 21, 2024
1 parent 95419ca commit a9820f0
Show file tree
Hide file tree
Showing 8 changed files with 108 additions and 0 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FILE: simple.kt
public final class A : R|kotlin/Any| {
public constructor(): R|A| {
super<R|kotlin/Any|>()
}

}
public final class C : R|kotlin/Any| {
public constructor(): R|C| {
super<R|kotlin/Any|>()
}

public final typealias TA = R|A|

public final fun test(): R|{C.TA=} A| {
^test R|/A.A|()
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// RUN_PIPELINE_TILL: FRONTEND
class A

class C {
<!TOPLEVEL_TYPEALIASES_ONLY!>typealias TA = A<!>

fun test(): TA = TA()
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a9820f0

Please sign in to comment.