Skip to content

Templates compiler bug #132

Open
Open
@jroper

Description

@jroper

Well, I haven't actually seen this bug in Scala IDE, but I used

#40

as a guide for upgrading to Scala 2.10 for SBT 0.13 in Play itself, and found that there was a bug in the way it handled byName parameters. That pull request changed calls to ValDef.mods.isByNameParam to ValDef.symbol.isByNameParam, but that doesn't actually correctly detect by name params. What it should do is use ValDef.mods.hasFlag(Flags.BYNAMEPARAM). Don't ask me exactly what's going on, it was mostly trial and error and looking at values in a debugger that allowed me to get it working.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions