eed3si9n / treehugger

treehugger.scala is a library to code Scala programmatically.
http://eed3si9n.com/treehugger
Other
133 stars 20 forks source link

Side-effecting methods with implicits #26

Open onsails opened 9 years ago

onsails commented 9 years ago

Methods defined with empty parameters list and with some implicit parameters look like methods without side-effects after rendering:

DEF("foo") withParams() withParams(PARAM("a", IntClass).withFlags(Flags.IMPLICIT))
// -> def foo(implicit a: Int)

I expect it to render def foo()(implicit a: Int)