https://kotlinlang.org logo
a

andylamax

08/05/2023, 8:30 AM
Enum.entries not available for kotlin js??
e

ephemient

08/05/2023, 9:12 AM
https://pl.kotl.in/XqU08wzxe works on playground
a

andylamax

08/05/2023, 9:30 AM
looks like https://pl.kotl.in/S01bBoOpm is not working
e

ephemient

08/05/2023, 9:31 AM
it is working, it just doesn't go to the same log
a

andylamax

08/05/2023, 9:33 AM
It is really not printing anything this end.
e

ephemient

08/05/2023, 9:33 AM
Screenshot 2023-08-05 18.33.33.png
a

andylamax

08/05/2023, 9:35 AM
Oooh, I see. It actually logs in the browser's console
Okay, minimum producer isn't working. But in my large project, whenever I do
Enum.entries
, it fails with
Copy code
property entries is not defined
Will find better way to reproduce this and report
e

ephemient

08/05/2023, 9:38 AM
literally
Enum.entries
, or
SomeSpecificEnumType.entries
?
a

andylamax

08/05/2023, 9:38 AM
its
SomeSpecificEnumType.entries
that I am talking about
any enum to be exact. I was swapping my
.values().toList()
invokations with
.entries
t

turansky

08/05/2023, 1:00 PM
Probably you missed api/language version configuration
1.9
required
a

andylamax

08/05/2023, 1:55 PM
Its highly unlikely, but probable. I manage the kotlin version of the project (with multiple submodules) from a single version catalog