FIR2IR: make anonymous object constructor public to match K1 behavior

This commit is contained in:
Mikhail Glukhikh
2023-03-15 12:33:11 +01:00
committed by Space Team
parent e1c2dc06f1
commit 0ecfcf4380
45 changed files with 72 additions and 853 deletions
@@ -49,7 +49,7 @@ internal object EmptyArrayMap : ArrayMap<Nothing> {
override operator fun iterator(): Iterator<Nothing> {
return { // BLOCK
local class <no name provided> : Iterator<Nothing> {
private constructor() /* primary */ {
constructor() /* primary */ {
super/*Any*/()
/* <init>() */
@@ -109,7 +109,7 @@ internal class OneElementArrayMap<T : Any> : ArrayMap<T> {
override operator fun iterator(): Iterator<T> {
return { // BLOCK
local class <no name provided> : Iterator<T> {
private constructor() /* primary */ {
constructor() /* primary */ {
super/*Any*/()
/* <init>() */
@@ -211,7 +211,7 @@ internal class ArrayMapImpl<T : Any> : ArrayMap<T> {
override operator fun iterator(): Iterator<T> {
return { // BLOCK
local class <no name provided> : AbstractIterator<T> {
private constructor() /* primary */ {
constructor() /* primary */ {
super/*AbstractIterator*/<T>()
/* <init>() */