Detects main method with argument Array<String?>
This commit is contained in:
@@ -125,7 +125,7 @@ class MainFunctionDetector {
|
|||||||
if (typeArguments.size != 1) return false
|
if (typeArguments.size != 1) return false
|
||||||
|
|
||||||
val typeArgument = typeArguments[0].type
|
val typeArgument = typeArguments[0].type
|
||||||
if (!KotlinBuiltIns.isString(typeArgument)) {
|
if (!KotlinBuiltIns.isStringOrNullableString(typeArgument)) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
if (typeArguments[0].projectionKind === Variance.IN_VARIANCE) {
|
if (typeArguments[0].projectionKind === Variance.IN_VARIANCE) {
|
||||||
|
|||||||
Reference in New Issue
Block a user