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

Bug in template instantiation scoping code #78

Closed
sccolbert opened this issue Nov 5, 2013 · 0 comments
Closed

Bug in template instantiation scoping code #78

sccolbert opened this issue Nov 5, 2013 · 0 comments
Labels

Comments

@sccolbert
Copy link
Member

The compiler generates bad code for this:

from enaml.widgets.api import *


template Foo():
    Field:
        placeholder = 'foo'

enamldef Main(Window):
    Container:
        Foo(): f:
            f.text = f.placeholder

The scope key for the outer closure scope is not correctly passed to compiler helper which binds the expression for f.placeholder.

sccolbert added a commit that referenced this issue Jan 13, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant