hello yesterday I`ve been playing with my build kt...
# gradle
m
hello yesterday I`ve been playing with my build kts and found that this code
Copy code
val debugPort = "8000"
enum class JreVersion( val value: String, val debugString: String = "", val additionalDependencies: DependencyHandlerScope.() -> Unit = {} ) {
    Eleven(value = "11.0.2-jre-slim",
        debugString = "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:$debugPort",
        additionalDependencies = {
            implementation("org.glassfish.jaxb:jaxb-runtime")
        }
    )
}
won’t compile with
Don't know how to generate outer expression: Class: class JreVersion
I`m not sure should I report this as bug or not but seems that - something goes wrong because I`m expecting top level value defined before class to be accessible from class bellow
a
Hi, please report an issue at http://kotl.in/issue. For simple cases like https://youtrack.jetbrains.com/issue/KT-19423 currently an error is expected:
Expression is inaccessible from a nested class
.