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

Commit f696b6f

Browse files
committed
テストのためinternal化
1 parent 4450eba commit f696b6f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/kotlin/com/mapk/fastkfunction/SingleArgFastKFunction.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package com.mapk.fastkfunction
22

3+
import org.jetbrains.annotations.TestOnly
34
import java.lang.reflect.Method
45
import java.lang.reflect.Modifier
56
import kotlin.reflect.KFunction
@@ -54,7 +55,8 @@ sealed class SingleArgFastKFunction<T> {
5455
}
5556

5657
companion object {
57-
private fun List<KParameter>.checkParameters() = also {
58+
@TestOnly
59+
internal fun List<KParameter>.checkParameters() = also {
5860
val requireInstanceParameter = this[0].kind != KParameter.Kind.VALUE
5961

6062
if (isEmpty() || (requireInstanceParameter && size == 1))

0 commit comments

Comments
 (0)