Better main function recognition and tests

fix vararg main
This commit is contained in:
Sergey Mashkov
2015-07-24 13:45:47 +03:00
parent 8457b53f8b
commit 0453368990
3 changed files with 7 additions and 2 deletions
@@ -84,7 +84,7 @@ public class MainFunctionDetector {
if (!KotlinBuiltIns.isString(typeArgument)) {
return false;
}
if (typeArguments.get(0).getProjectionKind() != Variance.INVARIANT) {
if (typeArguments.get(0).getProjectionKind() == Variance.IN_VARIANCE) {
return false;
}