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

Commit e4725f2

Browse files
committed
Value以外のパラメータが2つ以上要求される場合のチェックを修正
1 parent 6fd8b03 commit e4725f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ sealed class FastKFunction<T> {
137137
if (isEmpty() || (requireInstanceParameter && size == 1))
138138
throw IllegalArgumentException("This function is not require arguments.")
139139

140-
if (3 <= size && requireInstanceParameter && get(1).kind != KParameter.Kind.VALUE)
140+
if (2 <= size && this[1].kind != KParameter.Kind.VALUE)
141141
throw IllegalArgumentException("This function is require multiple instances.")
142142
}
143143

0 commit comments

Comments
 (0)