<@U0E9C04JE> I can't really find anything, none of...
# announcements
k
@Dave Leeds I can't really find anything, none of these are an error:
Copy code
class Test<out T>(val a: T) {
    val b: T? = null
    fun derp() {
        val b: T
    }
}
d
Thanks @karelpeeters. The message seems to apply mainly to type arguments (i.e., outside the generic class at the use site rather than inside the class declaration). I traced the error message in the Kotlin compiler code back to April 2012... so I'm thinking either Kotlin tried to support generic property access at one point early in its history (although I'm not sure how that would conceptually work), or the message was just written incorrectly. Maybe I can ask one of the JetBrains guys at the next KotlinConf. 🙂
k
I also tried looking in the compiler code, didn't see anything immediately property related either.
You could make a youtrack issue, I'd be interested to hear the answer too.
👍 1