-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Description
This issue was originally filed by [email protected]
foo([x]) {
print('x = $x');
}
main() {
foo();
}
In Dartboard leads to:
NoSuchMethodException - receiver: '' function name: '' arguments: []]
In DartVM works fine (output 'x = null')
The holy spec is somewhat unclear on the subj, but "6.2.2 Named Optional Formals" marks default value for optional argument optional, so DartVM behaviour seems reasonable.
Metadata
Metadata
Assignees
Labels
No labels