Skip to content
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

Lexical scope comes before inherited scope #1598

Closed
peter-ahe-google opened this issue Feb 9, 2012 · 4 comments
Closed

Lexical scope comes before inherited scope #1598

peter-ahe-google opened this issue Feb 9, 2012 · 4 comments
Labels
area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.

Comments

@peter-ahe-google
Copy link
Contributor

$ cat > fisk.dart
int x = 89;

class Foo {
 int x = 42;
}

class Bar extends Foo {
 m() => x;
}

main() {
 print(new Bar().m());
}
$ ./xcodebuild/Release_ia32/dart fisk.dart
42

That's the wrong answer. It's supposed to print 89.

See issue #1180.

@ghost
Copy link

ghost commented Feb 16, 2012

Set owner to @mhausner.

@iposva-google
Copy link
Contributor

Added Accepted label.

@DartBot
Copy link

DartBot commented Apr 17, 2012

This comment was originally written by @mhausner


Currently testing a fix.


Added Started label.

@DartBot
Copy link

DartBot commented Apr 18, 2012

This comment was originally written by @mhausner


This is fixed in cl 6698.


Added Fixed label.

@peter-ahe-google peter-ahe-google added Type-Defect area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends. labels Apr 18, 2012
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.
Projects
None yet
Development

No branches or pull requests

3 participants