Detects main method with argument Array<String?>

This commit is contained in:
Vladimir Dolzhenko
2019-10-24 11:06:13 +02:00
parent cb3d027463
commit 6250f1a042
@@ -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) {