From b88a8834dc3be12a37856e9e2584eee7ef52c22e Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Sun, 2 Jul 2017 14:46:45 -0700 Subject: With generics --- library/src/main/kotlin/ca/allanwang/kau/utils/FragmentUtils.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/src/main/kotlin/ca/allanwang/kau/utils/FragmentUtils.kt b/library/src/main/kotlin/ca/allanwang/kau/utils/FragmentUtils.kt index e0bdd8b..acc71f2 100644 --- a/library/src/main/kotlin/ca/allanwang/kau/utils/FragmentUtils.kt +++ b/library/src/main/kotlin/ca/allanwang/kau/utils/FragmentUtils.kt @@ -6,7 +6,7 @@ import org.jetbrains.anko.bundleOf /** * Created by Allan Wang on 2017-07-02. */ -fun Fragment.withArguments(vararg params:Pair):Fragment { +fun T.withArguments(vararg params: Pair): T { arguments = bundleOf(*params) return this } \ No newline at end of file -- cgit v1.2.3