Skip to content

Commit

Permalink
Fix type parameter inference problem
Browse files Browse the repository at this point in the history
Fixes error: Could not determine type for parameter T
  • Loading branch information
tobil4sk committed Sep 26, 2022
1 parent 4652b66 commit f7530a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/haxelib/api/GlobalScope.hx
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class GlobalScope extends Scope {
}

public function getArgsAsHxml(library:ProjectName, ?version:Version):String {
final stack = new GenericStack();
final stack = new GenericStack<{library:ProjectName, version:Null<Version>}>();
stack.add({library: library, version: version});

return getArgsAsHxmlWithDependencies(stack);
Expand Down

0 comments on commit f7530a4

Please sign in to comment.