GreenSaguaro
GreenSaguaro

Reputation: 3387

Kotlin JVM - Char MAX_CODE_POINT - Unresolved Reference

According to this document: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char/index.html

Char has a companion object property MAX_CODE_POINT. But, when I try to access it, I get:

$ kotlinc-jvm
Welcome to Kotlin version 1.3.50 (JRE 1.8.0_212-b04)
Type :help for help, :quit for quit
>>> Char.MAX_CODE_POINT
error: unresolved reference: MAX_CODE_POINT
Char.MAX_CODE_POINT
     ^

>>> Char.Companion.MAX_CODE_POINT
error: unresolved reference: MAX_CODE_POINT
Char.Companion.MAX_CODE_POINT
               ^

Am I doing something wrong?

Upvotes: 0

Views: 86

Answers (1)

jsamol
jsamol

Reputation: 3232

According to the documentation the MAX_CODE_POINT property is defined in Kotlin/Native only.

Upvotes: 1

Related Questions