From 5fd7a9503e44b8e95c0ca5aa4366270a3cd90155 Mon Sep 17 00:00:00 2001 From: Igor Mielientiev Date: Wed, 22 Mar 2017 16:24:15 +0200 Subject: Fix varargs in methods and constructors (#2135) * Fix varargs in methods (Issue: #1625) * Fix minor comments * Change varargs parameter message * Fix failed test, fix case for constructor --- tests/pos/varargsInMethodsT1625/curriedPosExample.scala | 3 +++ tests/pos/varargsInMethodsT1625/onlyOneVarArgs.scala | 3 +++ 2 files changed, 6 insertions(+) create mode 100644 tests/pos/varargsInMethodsT1625/curriedPosExample.scala create mode 100644 tests/pos/varargsInMethodsT1625/onlyOneVarArgs.scala (limited to 'tests/pos') diff --git a/tests/pos/varargsInMethodsT1625/curriedPosExample.scala b/tests/pos/varargsInMethodsT1625/curriedPosExample.scala new file mode 100644 index 000000000..c614f2dee --- /dev/null +++ b/tests/pos/varargsInMethodsT1625/curriedPosExample.scala @@ -0,0 +1,3 @@ +trait T2 { + def foo(x: String, y: String*)(z: Boolean*)(u: Int, l: Int*): Int +} \ No newline at end of file diff --git a/tests/pos/varargsInMethodsT1625/onlyOneVarArgs.scala b/tests/pos/varargsInMethodsT1625/onlyOneVarArgs.scala new file mode 100644 index 000000000..834960b4a --- /dev/null +++ b/tests/pos/varargsInMethodsT1625/onlyOneVarArgs.scala @@ -0,0 +1,3 @@ +trait T1 { + def foo(x: String*): Int +} \ No newline at end of file -- cgit v1.2.3