diff --git a/compiler/testData/diagnostics/tests/typealias/nestedSubstituted.fir.kt b/compiler/testData/diagnostics/tests/typealias/nestedSubstituted.fir.kt new file mode 100644 index 00000000000..0d534ec8478 --- /dev/null +++ b/compiler/testData/diagnostics/tests/typealias/nestedSubstituted.fir.kt @@ -0,0 +1,9 @@ +// !DIAGNOSTICS: -UNUSED_VARIABLE -UNUSED_PARAMETER -TOPLEVEL_TYPEALIASES_ONLY + +class Pair(val x1: T1, val x2: T2) + +class C { + typealias P2 = Pair +} + +val p1: C.P2 = Pair("", 1) diff --git a/compiler/testData/diagnostics/tests/typealias/nestedSubstituted.kt b/compiler/testData/diagnostics/tests/typealias/nestedSubstituted.kt index cf159437453..e5ec2fb2f50 100644 --- a/compiler/testData/diagnostics/tests/typealias/nestedSubstituted.kt +++ b/compiler/testData/diagnostics/tests/typealias/nestedSubstituted.kt @@ -1,4 +1,3 @@ -// FIR_IDENTICAL // !DIAGNOSTICS: -UNUSED_VARIABLE -UNUSED_PARAMETER -TOPLEVEL_TYPEALIASES_ONLY class Pair(val x1: T1, val x2: T2)