-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Local function parameters appear to be entered in wrong scope. #388
Comments
Added this to the FrogEditor milestone. |
Added Started label. |
The trick is, it can't be entered into the enclosing scope either, because of cases such as: suspect we need to do something goofy for lambda expressions, like generate an intermediate scope if they happen to have a name. |
Set owner to @jmesserly. |
Added Fixed label. |
The error message below complains that the formal is a duplicate definition - is it being entered into the wrong scope?
bug7.dart:
main() {
tag(tag, s) => s === null ? '' : '$tag$s';
print('${tag('x=', 8)}');
}
$ frogsh --enable_type_checks bug7.dart
bug7.dart:2:7: error: duplicate name "tag"
tag(tag, s) => s === null ? '' : '$tag$s';
^^^
compilation failed with 1 errors
$ dart_bin --enable_type_checks --warning_as_error bug7.dart
x=8
$
The text was updated successfully, but these errors were encountered: