Skip to content

Commit

Permalink
[Tests] Reproduce KT-73043
Browse files Browse the repository at this point in the history
  • Loading branch information
KvanTTT authored and Space Team committed Dec 3, 2024
1 parent 8f8ddd0 commit 62afeaf
Show file tree
Hide file tree
Showing 9 changed files with 82 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.

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.

Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// RUN_PIPELINE_TILL: FRONTEND
// ISSUE: KT-73043

class Foo {
class Nested
inner class Inner
}

typealias NestedAlias = Foo.Nested
typealias InnerAlias = Foo.Inner

fun test() {
val foo = Foo()

val aliasedNested = ::NestedAlias
val aliasedInner = Foo::<!EXTENSION_IN_CLASS_REFERENCE_NOT_ALLOWED!>InnerAlias<!>

aliasedNested()
aliasedInner(foo)
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// RUN_PIPELINE_TILL: FRONTEND
// ISSUE: KT-73043

class Foo {
class Nested
inner class Inner
}

typealias NestedAlias = Foo.Nested
typealias InnerAlias = Foo.Inner

fun test() {
val foo = Foo()

val aliasedNested = ::NestedAlias
val aliasedInner = Foo::InnerAlias

aliasedNested()
aliasedInner(foo)
}

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

0 comments on commit 62afeaf

Please sign in to comment.