File: misc.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 (57 lines) | stat: -rw-r--r-- 1,376 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
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
misc.scala:46: warning: a pure expression does nothing in statement position; you may be omitting necessary parentheses
    42;
    ^
misc.scala:47: warning: a pure expression does nothing in statement position; you may be omitting necessary parentheses
    42l;
    ^
misc.scala:48: warning: a pure expression does nothing in statement position; you may be omitting necessary parentheses
    23.5f;
    ^
misc.scala:49: warning: a pure expression does nothing in statement position; you may be omitting necessary parentheses
    23.5;
    ^
misc.scala:50: warning: a pure expression does nothing in statement position; you may be omitting necessary parentheses
    "Hello";
    ^
misc.scala:51: warning: a pure expression does nothing in statement position; you may be omitting necessary parentheses
    32 + 45;
       ^
misc.scala:62: warning: a pure expression does nothing in statement position; you may be omitting necessary parentheses
    x;
    ^
misc.scala:74: warning: a pure expression does nothing in statement position; you may be omitting necessary parentheses
    1 < 2;
      ^
### Hello
### 17
### Bye

### fib(0) = 1
### fib(1) = 1
### fib(2) = 2
### fib(3) = 3
### fib(4) = 5
=== MyClass::toString ===
=== MySubclass::toString ===
=== MyClass::test ===

identity

A.a = 1
B.a = 5
B.b = 2

X.a = 4
Y.a = 11
Y.b = 5
Y.b = 5

X::foo

Y::foo
X::foo

3
3

true