File: macro-invalidusage-badargs.check

package info (click to toggle)
scala 2.11.8-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 61,060 kB
  • ctags: 3,923
  • sloc: java: 13,251; xml: 3,214; sh: 1,553; python: 756; makefile: 40; awk: 36; ansic: 6
file content (19 lines) | stat: -rw-r--r-- 518 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Macros_Test_2.scala:5: error: type mismatch;
 found   : String("42")
 required: Int
  foo("42")
      ^
Macros_Test_2.scala:6: error: too few argument lists for macro invocation
  foo
  ^
Macros_Test_2.scala:7: error: Int does not take parameters
  foo(4)(2)
        ^
Macros_Test_2.scala:8: error: not enough arguments for macro method foo: (x: Int)Int.
Unspecified value parameter x.
  foo()
     ^
Macros_Test_2.scala:9: error: too many arguments for macro method foo: (x: Int)Int
  foo(4, 2)
     ^
5 errors found