← Docs
kotlin-stdlib / kotlin.reflect.full / primaryConstructor

primaryConstructor

JVM
1.1
val < T : Any > KClass < T > . primaryConstructor : KFunction < T > ?
(source)

Returns the primary constructor of this class, or null if this class has no primary constructor. See the Kotlin language documentation for more information.

Stay in touch:
  • Contributing to Kotlin
  • Releases
  • Press Kit
  • Security
  • Blog
  • Issue Tracker
  • Brand assets
  • Careers
Supported and developed by JetBrains .
Kotlin™ is protected under the Kotlin Foundation
and licensed under the Apache 2 license .