Merge: model: group parameter types in `MSignature::to_s`
authorJean Privat <jean@pryen.org>
Mon, 17 Jul 2017 13:53:32 +0000 (09:53 -0400)
committerJean Privat <jean@pryen.org>
Mon, 17 Jul 2017 13:53:32 +0000 (09:53 -0400)
commit7b06f73da75107a452a57f346a81142b2d915247
tree473ce180dddbc923c1c2ea1859c1dd7ac350e6e1
parent6e8cc7f835d389cc5f76db165a0030112fdd053b
parentf75bd4079cb83506d928153ba1d8a6f205d6ce93
Merge: model: group parameter types in `MSignature::to_s`

Modify `MSignature::to_s` to make its output a shorter valid Nit signature. This helps readability and shortens error messages allowing them to fit more easily on a single line or within a text editor.

Example program:
~~~nit
import geometry
var b = new Box3d[Float] # <- error
~~~

Previous error message:
~~~
Error: expected 6 argument(s) for `init(left: Float, right: Float, top: Float, bottom: Float, front: Float, back: Float)`; got 0. See introduction at `core::Object::init`.
~~~

New error message:
~~~
Error: expected 6 argument(s) for `init(left, right, top, bottom, front, back: Float)`; got 0. See introduction at `core::Object::init`.
~~~

Pull-Request: #2529