Skip to content

Commit f7505b4

Browse files
committed
Fix compiler error when build with mono 2.0
Using an unassigned Action in lambda function will cause compiler error for older version of Mono, even the variable will be assigned before it is used. The workaround is to assign null to the Action first. Change-Id: I6ecdd12caf559f7509d1a3737127fd2cc83c50e6
1 parent 76c3955 commit f7505b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/AndroidResolver/src/GradleResolver.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@ private void FindAndResolveConflicts(Action complete) {
709709
var conflictsEnumerator = conflicts.GetEnumerator();
710710

711711
// Move to the next conflicting package and prompt the user to delete a package.
712-
Action promptToDeleteNextConflict;
712+
Action promptToDeleteNextConflict = null;
713713

714714
promptToDeleteNextConflict = () => {
715715
bool conflictEnumerationComplete = false;

0 commit comments

Comments
 (0)