summaryrefslogtreecommitdiff
path: root/test/files/run/misc.check
blob: 56116f81048b5d2490b5f03fcc1f25ce8acc3318 (plain) (blame)
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