File: missing-arg-list.check

package info (click to toggle)
scala 2.11.12-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 62,924 kB
  • sloc: javascript: 28,808; java: 13,415; xml: 3,135; sh: 1,620; python: 756; makefile: 38; awk: 36; ansic: 6
file content (21 lines) | stat: -rw-r--r-- 1,112 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
20
21
missing-arg-list.scala:9: error: missing argument list for method id in trait T
Unapplied methods are only converted to functions when a function type is expected.
You can make this conversion explicit by writing `id _` or `id(_)` instead of `id`.
  val w = id
          ^
missing-arg-list.scala:10: error: missing argument list for method f in trait T
Unapplied methods are only converted to functions when a function type is expected.
You can make this conversion explicit by writing `f _` or `f(_)(_)` instead of `f`.
  val x = f
          ^
missing-arg-list.scala:11: error: missing argument list for method g in trait T
Unapplied methods are only converted to functions when a function type is expected.
You can make this conversion explicit by writing `g _` or `g(_,_,_)` instead of `g`.
  val y = g
          ^
missing-arg-list.scala:12: error: missing argument list for method h in trait T
Unapplied methods are only converted to functions when a function type is expected.
You can make this conversion explicit by writing `h _` or `h(_,_,_)(_)` instead of `h`.
  val z = h
          ^
four errors found