diff options
author | Eugene Burmako <xeno.by@gmail.com> | 2013-01-14 23:55:25 +0100 |
---|---|---|
committer | Eugene Burmako <xeno.by@gmail.com> | 2013-05-28 08:23:44 +0200 |
commit | 70f001181734f76064d97ec25b1afd6aad49b684 (patch) | |
tree | cfd16d6df0388c26a0f05f6155a53f8c499d77a7 /test/files/neg/macro-invalidusage-badtargs.check | |
parent | e1d9805c91dbe74317e2f4f22ad59056d64d12b3 (diff) | |
download | scala-70f001181734f76064d97ec25b1afd6aad49b684.tar.gz scala-70f001181734f76064d97ec25b1afd6aad49b684.tar.bz2 scala-70f001181734f76064d97ec25b1afd6aad49b684.zip |
refactors macro tests
putting in a nutshell, this patch:
* condenses some macro-XXX-a/b/c/... bundles
* renames some tests to prepare for other macro flavors
* introduces some additional tests
Diffstat (limited to 'test/files/neg/macro-invalidusage-badtargs.check')
-rw-r--r-- | test/files/neg/macro-invalidusage-badtargs.check | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/test/files/neg/macro-invalidusage-badtargs.check b/test/files/neg/macro-invalidusage-badtargs.check index 73801ab43e..6a9e1d6e6b 100644 --- a/test/files/neg/macro-invalidusage-badtargs.check +++ b/test/files/neg/macro-invalidusage-badtargs.check @@ -1,4 +1,18 @@ -Macros_Test_2.scala:7: error: macro method foo: (x: Int)Int does not take type parameters. - val s: String = foo[String](42) - ^ -one error found +Macros_Test_2.scala:11: error: macro method foo1: (x: Int)Int does not take type parameters. + foo1[String](42) + ^ +Macros_Test_2.scala:12: error: wrong number of type parameters for macro method foo2: [T](x: Int)Int + foo2[String, String](42) + ^ +Macros_Test_2.scala:13: error: wrong number of type parameters for macro method foo3: [T, U](x: Int)Int + foo3[String](42) + ^ +Macros_Test_2.scala:14: error: String takes no type parameters, expected: one + foo4[String](42) + ^ +Macros_Test_2.scala:15: error: kinds of the type arguments (List) do not conform to the expected kinds of the type parameters (type T). +List's type parameters do not match type T's expected parameters: +type A has no type parameters, but type U has one + foo5[List](42) + ^ +5 errors found |