https://kotlinlang.org logo
#announcements
Title
# announcements
u

ursus

10/29/2020, 9:37 PM
Can I create a nested class on a class I dont have access to? Something like
Copy code
enum class Parent.Child {
    BAR, QUAX
}
where Parent is generated, so I cannot put the Child there directly
b

Big Chungus

10/29/2020, 10:57 PM
Don't think so. Why would you need it? Namespacing?
u

ursus

10/30/2020, 2:21 AM
yes
l

louiscad

10/30/2020, 8:52 AM
@elizarov That's an interesting use case for the
namespace
idea you showed in your recent talk. I think I came across such use cases in the past.