# Default and Named Type Parameters

**URL:** <https://discuss.kotlinlang.org/t/default-and-named-type-parameters/19299>\
**Category:** Language Design\
**Created:** [September 26, 2020, 3:56am UTC](https://discuss.kotlinlang.org/t/default-and-named-type-parameters/19299 "2020-09-26T03:56:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![peterhenryd](https://avatars.discourse-cdn.com/v4/letter/p/90db22/32.png) [@peterhenryd](https://discuss.kotlinlang.org/u/peterhenryd)\
**Post date:** [September 26, 2020, 3:56am UTC](https://discuss.kotlinlang.org/t/default-and-named-type-parameters/19299/1 "2020-09-26T03:56:10Z")

</div>

Add default and named type/generic parameters to Kotlin declarations.

```auto
class Test<A = String, B : Comparable<B>, C = Int> { ... }

lateinit var test: Test<B = String, C = Long>

```

There are so many use cases for this and it’s a very simple feature which would be easily lowered on the front-end.

---

<div class="post-metadata">

**Author:** ![daemontus](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/daemontus/32/4917_2.png) [@daemontus](https://discuss.kotlinlang.org/u/daemontus)\
**Post date:** [September 30, 2020, 8:19pm UTC](https://discuss.kotlinlang.org/t/default-and-named-type-parameters/19299/2 "2020-09-30T20:19:44Z")

</div>

I believe something along those lines is already submitted as a feature request: [KT-1215](https://youtrack.jetbrains.com/issue/KT-1215) But it seems it never really gained traction. Maybe if somebody created a KEEP for it…
