Skip to content

Commit

Permalink
Improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
mauriciotogneri committed Sep 6, 2024
1 parent 250315c commit 9d30a6b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion example/example3.prm
Original file line number Diff line number Diff line change
@@ -1 +1 @@
main(args) = list.at(args[0], args[1])
main(list, index) = list.at(list, index)
2 changes: 1 addition & 1 deletion lib/compiler/runtime/runtime.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class Runtime {
final FunctionNode? main = intermediateCode.functions['main'];

if ((main != null) && main.parameters.isNotEmpty) {
return compiler.expression('main($arguments)');
return compiler.expression('main(${arguments.join(', ')})');
} else {
return compiler.expression('main()');
}
Expand Down

0 comments on commit 9d30a6b

Please sign in to comment.