Skip to content
This repository was archived by the owner on Jan 20, 2023. It is now read-only.

Commit 5a5d325

Browse files
committed
ダミーコンストラクタに関して追記
1 parent c17aecf commit 5a5d325

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,13 @@ data class Dst(...)
131131
val mapper: KRowMapper<Dst> = KRowMapper(Dst::class)
132132
```
133133

134+
135+
You can also write the following using a `dummy constructor`.
136+
137+
```kotlin
138+
val mapper: KRowMapper<Dst> = KRowMapper<Dst>()
139+
```
140+
134141
#### Specifying the target of a call by KConstructor annotation
135142
When you initialize from the `KClass`, you can use the `KConstructor` annotation and to specify the function to be called.
136143

0 commit comments

Comments
 (0)