From ad0f154ed1f9ef88eee54a890bd83ccff066b217 Mon Sep 17 00:00:00 2001 From: Zalim Bashorov Date: Tue, 17 Nov 2020 02:40:32 +0300 Subject: [PATCH] [IR] add new testdata after rebase --- .../testData/ir/irText/classes/kt43217.kt.txt | 41 +++++++++++++++++++ ...siveCapturedTypeInPropertyReference.kt.txt | 23 +++++++++++ 2 files changed, 64 insertions(+) create mode 100644 compiler/testData/ir/irText/classes/kt43217.kt.txt create mode 100644 compiler/testData/ir/irText/firProblems/recursiveCapturedTypeInPropertyReference.kt.txt diff --git a/compiler/testData/ir/irText/classes/kt43217.kt.txt b/compiler/testData/ir/irText/classes/kt43217.kt.txt new file mode 100644 index 00000000000..a094ba43c2d --- /dev/null +++ b/compiler/testData/ir/irText/classes/kt43217.kt.txt @@ -0,0 +1,41 @@ +class A { + constructor() /* primary */ { + super/*Any*/() + /* () */ + + } + + private val b: + field = { // BLOCK + local class : DoubleExpression { + constructor() /* primary */ { + super/*DoubleExpression*/() + /* () */ + + } + + override fun get(): Double { + return 0.0D + } + + } + + () + } + private get + +} + +class C : DoubleExpression { + constructor() /* primary */ { + super/*DoubleExpression*/() + /* () */ + + } + + override fun get(): Double { + return 0.0D + } + +} + diff --git a/compiler/testData/ir/irText/firProblems/recursiveCapturedTypeInPropertyReference.kt.txt b/compiler/testData/ir/irText/firProblems/recursiveCapturedTypeInPropertyReference.kt.txt new file mode 100644 index 00000000000..f8dbe9e5048 --- /dev/null +++ b/compiler/testData/ir/irText/firProblems/recursiveCapturedTypeInPropertyReference.kt.txt @@ -0,0 +1,23 @@ +interface Something { + +} + +interface Recursive where R : Recursive, R : Something { + abstract val symbol: AbstractSymbol + abstract get + +} + +abstract class AbstractSymbol where E : Recursive, E : Something { + constructor() /* primary */ { + super/*Any*/() + /* () */ + + } + + fun foo(list: List) { + val result: List>> = list.filterIsInstance>().map, AbstractSymbol>>(transform = Recursive::symbol) + } + +} +