summaryrefslogtreecommitdiff
path: root/test/files/neg/t6829.check
blob: 5ccd531be1948566116a444b5f7b65551fc02e4e (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
t6829.scala:35: error: type mismatch;
 found   : AgentSimulation.this.state.type (with underlying type G#State)
 required: _1.State
    lazy val actions: Map[G#Agent,G#Action] = agents.map(a => a -> a.chooseAction(state)).toMap
                                                                                  ^
t6829.scala:45: error: trait AgentSimulation takes type parameters
                                               pastHistory: List[G#State] = Nil) extends AgentSimulation
                                                                                         ^
t6829.scala:47: error: class LearningSimulation takes type parameters
    lazy val step: LearningSimulation = {
                   ^
t6829.scala:49: error: not found: value actions
        val (s,a,s2) = (state,actions(agent),nextState)
                              ^
t6829.scala:49: error: not found: value nextState
        val (s,a,s2) = (state,actions(agent),nextState)
                                             ^
t6829.scala:50: error: type mismatch;
 found   : s.type (with underlying type Any)
 required: _1.State where val _1: G
        val r = rewards(agent).r(s,a,s2)
                                 ^
t6829.scala:50: error: type mismatch;
 found   : a.type (with underlying type Any)
 required: _1.Action where val _1: G
        val r = rewards(agent).r(s,a,s2)
                                   ^
t6829.scala:50: error: type mismatch;
 found   : s2.type (with underlying type Any)
 required: _1.State where val _1: G
        val r = rewards(agent).r(s,a,s2)
                                     ^
t6829.scala:51: error: type mismatch;
 found   : s.type (with underlying type Any)
 required: _1.State
        agent.learn(s,a,s2,r): G#Agent
                    ^
t6829.scala:51: error: type mismatch;
 found   : a.type (with underlying type Any)
 required: _1.Action
        agent.learn(s,a,s2,r): G#Agent
                      ^
t6829.scala:51: error: type mismatch;
 found   : s2.type (with underlying type Any)
 required: _1.State
        agent.learn(s,a,s2,r): G#Agent
                        ^
t6829.scala:53: error: not found: value nextState
Error occurred in an application involving default arguments.
      copy(agents = updatedAgents, state = nextState, pastHistory = currentHistory)
                                           ^
t6829.scala:53: error: not found: value currentHistory
Error occurred in an application involving default arguments.
      copy(agents = updatedAgents, state = nextState, pastHistory = currentHistory)
                                                                    ^
13 errors found