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

Controller: defs without parens not working #38

Closed
jokade opened this issue Apr 2, 2015 · 0 comments
Closed

Controller: defs without parens not working #38

jokade opened this issue Apr 2, 2015 · 0 comments
Assignees
Labels
Milestone

Comments

@jokade
Copy link
Owner

jokade commented Apr 2, 2015

class FooCtrl extends Controller {
  def bar: String = ...
}

throws an exception during macro expansion:

[error] java.util.NoSuchElementException: head of empty list
[error]     at scala.collection.immutable.Nil$.head(List.scala:420)
[error]     at scala.collection.immutable.Nil$.head(List.scala:417)
[error]     at biz.enef.angulate.impl.MacroBase.makeArgsList(MacroBase.scala:36)
[error]     at biz.enef.angulate.impl.ControllerMacroUtils$$anonfun$copyMembers$2.apply(ControllerMacros.scala:151)
[error]     at biz.enef.angulate.impl.ControllerMacroUtils$$anonfun$copyMembers$2.apply(ControllerMacros.scala:149)
[error]     at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:245)
[error]     at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:245)
[error]     at scala.collection.immutable.List.foreach(List.scala:381)
[error]     at scala.collection.TraversableLike$class.map(TraversableLike.scala:245)
[error]     at scala.collection.immutable.List.map(List.scala:285)
[error]     at biz.enef.angulate.impl.ControllerMacroUtils$class.copyMembers(ControllerMacros.scala:149)
[error]     at biz.enef.angulate.impl.ControllerMacros.copyMembers(ControllerMacros.scala:14)
[error]     at biz.enef.angulate.impl.ControllerMacros.createController(ControllerMacros.scala:88)
[error]     at biz.enef.angulate.impl.ControllerMacros.controllerOf(ControllerMacros.scala:29)
[error]   module.controllerOf[TransitionMatrixCtrl]
@jokade jokade added the bug label Apr 2, 2015
@jokade jokade self-assigned this Apr 2, 2015
@jokade jokade added this to the v0.2 milestone Apr 2, 2015
@jokade jokade closed this as completed Apr 4, 2015
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