From: Jean Privat Date: Fri, 24 Apr 2015 06:02:47 +0000 (+0700) Subject: Merge: Hint vararg X-Git-Tag: v0.7.4~7 X-Git-Url: http://nitlanguage.org Merge: Hint vararg Improve the error message so that user that try to pass an array as is instead of elements is hinted about the `...` reverse-vararg operator. ~~~ fun foo(xs: Int...) do end foo(1,2,3) # OK var a = [1,2,3] foo(a) # Error, expected `Int`; got `Array[Int]`. Is `...` missing? foo(a...) # OK ~~~ ![](http://i.imgur.com/zmyi8GR.jpg) close #98 (quite old bug) Pull-Request: #1294 Reviewed-by: Alexis Laferrière Reviewed-by: Lucas Bajolet Reviewed-by: Alexandre Terrasa --- ad0a7692b28db70d9b78736675884250106b9335