summaryrefslogtreecommitdiff
path: root/test/files/neg/t6829.check
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2014-02-12 14:41:36 +0100
committerAdriaan Moors <adriaan.moors@typesafe.com>2014-02-12 20:54:47 -0800
commitc956a27c3278b99d45676c268955a9e58a1ed15c (patch)
tree0c30690c97b32232398f0ae36fa059ccc835d84d /test/files/neg/t6829.check
parentb4e1a308f81d48b72ba90b7a8594759f27e1d8f3 (diff)
downloadscala-c956a27c3278b99d45676c268955a9e58a1ed15c.tar.gz
scala-c956a27c3278b99d45676c268955a9e58a1ed15c.tar.bz2
scala-c956a27c3278b99d45676c268955a9e58a1ed15c.zip
SI-5900 Fix pattern inference regression
This commit does not close SI-5900. It only addresses a regression in 2.11 prereleases caused by SI-7886. The fix for SI-7886 was incomplete (as shown by the last commit) and incorrect (as shown by the regression in pos/t5900a.scala and the fact it ended up inferring type parameters.) I believe that the key to fixing this problem will be unifying the inference of case class constructor patterns and extractor patterns. I've explored that idea: https://gist.github.com/retronym/7704153 https://github.com/retronym/scala/compare/ticket/5900 But didn't quite get there.
Diffstat (limited to 'test/files/neg/t6829.check')
-rw-r--r--test/files/neg/t6829.check12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/files/neg/t6829.check b/test/files/neg/t6829.check
index a0b43e3b52..914a1c9260 100644
--- a/test/files/neg/t6829.check
+++ b/test/files/neg/t6829.check
@@ -16,32 +16,32 @@ 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 T1)
+ found : s.type (with underlying type Any)
required: _53.State where val _53: G
val r = rewards(agent).r(s,a,s2)
^
t6829.scala:50: error: type mismatch;
- found : a.type (with underlying type T2)
+ found : a.type (with underlying type Any)
required: _53.Action where val _53: G
val r = rewards(agent).r(s,a,s2)
^
t6829.scala:50: error: type mismatch;
- found : s2.type (with underlying type T3)
+ found : s2.type (with underlying type Any)
required: _53.State where val _53: G
val r = rewards(agent).r(s,a,s2)
^
t6829.scala:51: error: type mismatch;
- found : s.type (with underlying type T1)
+ found : s.type (with underlying type Any)
required: _50.State
agent.learn(s,a,s2,r): G#Agent
^
t6829.scala:51: error: type mismatch;
- found : a.type (with underlying type T2)
+ found : a.type (with underlying type Any)
required: _50.Action
agent.learn(s,a,s2,r): G#Agent
^
t6829.scala:51: error: type mismatch;
- found : s2.type (with underlying type T3)
+ found : s2.type (with underlying type Any)
required: _50.State
agent.learn(s,a,s2,r): G#Agent
^