From e46199d28b57956b73a4f305735e9f7d148d2203 Mon Sep 17 00:00:00 2001 From: "Denis.Zharkov" Date: Wed, 28 Apr 2021 11:39:20 +0300 Subject: [PATCH] FIR: Update test data (nested type aliases) It's not consistent with FE 1.0, but behavior for nested type alias is undefined, yet. --- .../diagnostics/tests/typealias/nestedSubstituted.fir.kt | 9 +++++++++ .../diagnostics/tests/typealias/nestedSubstituted.kt | 1 - 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 compiler/testData/diagnostics/tests/typealias/nestedSubstituted.fir.kt 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)