Annotating constructor parameters seems to do nothing when compiled to bytecode. I get no compiler warnings either.

The following works. getAnnotations for the name field returns javax.annotation.Nullable.

class Person {
    @Nullable var name: String = _;
}

The following doesn't, neither with val or var.

class Person(@Nullable var name: String)

This is probably not intentional, so is there something I am missing or should I go file a bug report?

Edit
Report