@@ -29,19 +29,27 @@ enum class DefaultValues {
29
29
}
30
30
31
31
private fun topLevelFunc (
32
- arg1 : Int , arg2 : String , arg3 : String = DefaultValues .TopLevelFunc .name
32
+ arg1 : Int ,
33
+ arg2 : String ,
34
+ arg3 : String = DefaultValues .TopLevelFunc .name
33
35
): UseDefaultValueCallTest .Dst = UseDefaultValueCallTest .Dst (arg1, arg2, arg3)
34
36
35
37
private fun UseDefaultValueCallTest.Class.topLevelExtensionFunc (
36
- arg1 : Int , arg2 : String , arg3 : String = DefaultValues .TopLevelExtensionFunc .name
38
+ arg1 : Int ,
39
+ arg2 : String ,
40
+ arg3 : String = DefaultValues .TopLevelExtensionFunc .name
37
41
): UseDefaultValueCallTest .Dst = UseDefaultValueCallTest .Dst (arg1, arg2, arg3)
38
42
39
43
private fun UseDefaultValueCallTest.Class.topLevelExtensionFuncFromInstance (
40
- arg1 : Int , arg2 : String , arg3 : String = DefaultValues .TopLevelExtensionFuncFromInstance .name
44
+ arg1 : Int ,
45
+ arg2 : String ,
46
+ arg3 : String = DefaultValues .TopLevelExtensionFuncFromInstance .name
41
47
): UseDefaultValueCallTest .Dst = UseDefaultValueCallTest .Dst (arg1, arg2, arg3)
42
48
43
49
private fun UseDefaultValueCallTest.Class.topLevelExtensionFuncFromInstanceWithInstance (
44
- arg1 : Int , arg2 : String , arg3 : String = DefaultValues .TopLevelExtensionFuncFromInstanceWithInstance .name
50
+ arg1 : Int ,
51
+ arg2 : String ,
52
+ arg3 : String = DefaultValues .TopLevelExtensionFuncFromInstanceWithInstance .name
45
53
): UseDefaultValueCallTest .Dst = UseDefaultValueCallTest .Dst (arg1, arg2, arg3)
46
54
47
55
/* *
@@ -68,15 +76,21 @@ private class UseDefaultValueCallTest {
68
76
Dst (arg1, arg2, arg3)
69
77
70
78
fun ofWithInstance (
71
- arg1 : Int , arg2 : String , arg3 : String = DefaultValues .CompanionObjectFuncWithInstance .name
79
+ arg1 : Int ,
80
+ arg2 : String ,
81
+ arg3 : String = DefaultValues .CompanionObjectFuncWithInstance .name
72
82
) = Dst (arg1, arg2, arg3)
73
83
74
84
fun ofFromReflection (
75
- arg1 : Int , arg2 : String , arg3 : String = DefaultValues .CompanionObjectFuncFromReflection .name
85
+ arg1 : Int ,
86
+ arg2 : String ,
87
+ arg3 : String = DefaultValues .CompanionObjectFuncFromReflection .name
76
88
) = Dst (arg1, arg2, arg3)
77
89
78
90
fun ofFromReflectionWithInstance (
79
- arg1 : Int , arg2 : String , arg3 : String = DefaultValues .CompanionObjectFuncFromReflectionWithInstance .name
91
+ arg1 : Int ,
92
+ arg2 : String ,
93
+ arg3 : String = DefaultValues .CompanionObjectFuncFromReflectionWithInstance .name
80
94
) = Dst (arg1, arg2, arg3)
81
95
}
82
96
}
@@ -85,7 +99,9 @@ private class UseDefaultValueCallTest {
85
99
Dst (arg1, arg2, arg3)
86
100
87
101
private fun instanceFunctionWithInstance (
88
- arg1 : Int , arg2 : String , arg3 : String = DefaultValues .InstanceFuncWithInstance .name
102
+ arg1 : Int ,
103
+ arg2 : String ,
104
+ arg3 : String = DefaultValues .InstanceFuncWithInstance .name
89
105
) = Dst (arg1, arg2, arg3)
90
106
91
107
@ParameterizedTest
@@ -115,7 +131,9 @@ private class UseDefaultValueCallTest {
115
131
Arguments .of(::instanceFunctionWithInstance, this , DefaultValues .InstanceFuncWithInstance ),
116
132
Arguments .of((Dst )::of, null , DefaultValues .CompanionObjectFunc ),
117
133
Arguments .of(
118
- (Dst )::ofWithInstance, Dst ::class .companionObjectInstance, DefaultValues .CompanionObjectFuncWithInstance
134
+ (Dst )::ofWithInstance,
135
+ Dst ::class .companionObjectInstance,
136
+ DefaultValues .CompanionObjectFuncWithInstance
119
137
),
120
138
Arguments .of(ofFromReflection, null , DefaultValues .CompanionObjectFuncFromReflection ),
121
139
Arguments .of(
@@ -127,7 +145,9 @@ private class UseDefaultValueCallTest {
127
145
Arguments .of(Class ::topLevelExtensionFunc, Class (), DefaultValues .TopLevelExtensionFunc ),
128
146
Class ().let {
129
147
Arguments .of(
130
- it::topLevelExtensionFuncFromInstance, null , DefaultValues .TopLevelExtensionFuncFromInstance
148
+ it::topLevelExtensionFuncFromInstance,
149
+ null ,
150
+ DefaultValues .TopLevelExtensionFuncFromInstance
131
151
)
132
152
},
133
153
Class ().let {
0 commit comments