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

Commit c4710e8

Browse files
committed
テストのためinternal化
1 parent 90516fc commit c4710e8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import com.mapk.fastkfunction.argumentbucket.BucketGenerator
55
import com.mapk.fastkfunction.spreadwrapper.ForConstructor
66
import com.mapk.fastkfunction.spreadwrapper.ForKFunction
77
import com.mapk.fastkfunction.spreadwrapper.ForMethod
8+
import org.jetbrains.annotations.TestOnly
89
import java.lang.reflect.Method
910
import java.lang.reflect.Modifier
1011
import kotlin.reflect.KFunction
@@ -129,7 +130,8 @@ sealed class FastKFunction<T> {
129130
}
130131

131132
companion object {
132-
private fun List<KParameter>.checkParameters() = also {
133+
@TestOnly
134+
internal fun List<KParameter>.checkParameters() = also {
133135
val requireInstanceParameter = this[0].kind != KParameter.Kind.VALUE
134136

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

0 commit comments

Comments
 (0)