querydsl / codegen

Java/Scala Code generation tool
Apache License 2.0
23 stars 22 forks source link

Fix syntax error in method with return type in ScalaWriter #33

Closed bouil closed 9 years ago

bouil commented 9 years ago

Previous code would generate a method like :

def one(): Integer {
  1
}

which is incorrect. The correct syntax is :

def one(): Integer = {
  1
}

I'm using Scala 2.11. I don't know if it's a new syntax for this version or not, but I'm pretty sure the version with "=" is correct in older versions.

timowest commented 9 years ago

You are right. This looks correct.

Shredder121 commented 9 years ago

This also looks good to me.

johnktims commented 9 years ago

Agreed.

johnktims commented 9 years ago

Thanks for the PR, @bouil!

bouil commented 9 years ago

You're welcome. Le 6 sept. 2015 17:00, "John Tims" notifications@github.com a écrit :

Thanks for the PR, @bouil https://github.com/bouil!

— Reply to this email directly or view it on GitHub https://github.com/querydsl/codegen/pull/33#issuecomment-138091539.