aboutsummaryrefslogtreecommitdiff
path: root/tests/iii/class-method-errors/case.json
blob: e871f28c4ce5b1ce6d4ae7bd63ea15b162d04da6 (plain)
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

{
  "errors": [
    {
      "reason": "Cannot redeclare this inside a method",
      "line": 11
    },
    {
      "reason": "A method parameter cannot be named this",
      "line": 13
    },
    {
      "reason": "Duplicate member set in class Box",
      "line": 17
    },
    {
      "reason": "Duplicate member Value in class Box",
      "line": 19
    },
    {
      "reason": "Cannot access private field Hidden of type Box",
      "line": 25
    },
    {
      "reason": "Cannot access private method Secret of type Box",
      "line": 26
    },
    {
      "reason": "Cannot access private method Secret of type Box",
      "line": 30
    },
    {
      "reason": "Cannot access private field Hidden of type Box",
      "line": 31
    },
    {
      "reason": "Incorrect # arguments passed to Box.Set",
      "line": 32
    },
    {
      "reason": "Type Box has no method Missing",
      "line": 33
    },
    {
      "reason": "Type INTEGER has no method Set",
      "line": 35
    }
  ]
}