You have not misinterpreted anything. Coding conventions state " Names of constants (properties marked with const
, or top-level or object val
properties with no custom get
function that hold deeply immutable data) should use uppercase underscore-separated names"
So there is a bug in Intellij regarding checking of style.