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

Field storage can cause compilation error #48

Open
SlimerDude opened this issue Apr 4, 2015 · 1 comment
Open

Field storage can cause compilation error #48

SlimerDude opened this issue Apr 4, 2015 · 1 comment

Comments

@SlimerDude
Copy link
Collaborator

The following code snippet gives a compilation error in F4 but compiles fine in Fantom:

using fwt

class Example {
    Str? text

    Void main() {
        label := Label { it.text = method(this.&text) } // compilation error -> Expected ',', not '&'
    }

    Str method(Str s) { s }
}
@SlimerDude
Copy link
Collaborator Author

Update: It's a Tokenizer problem thrown by com.xored.f4.parser::Parser.verify().

Root cause seems to be line 1085 - tryTypeOrLocalOrSlot(). It handles & but not this.&

@SlimerDude SlimerDude mentioned this issue Jun 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant