diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2015-06-21 06:17:59 +1000 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2015-06-23 08:43:53 +1000 |
commit | 1531900bffb2bed6288eda4e0945b0e6dea3f23d (patch) | |
tree | c4df9581205cf4e405457052c837520eca13f0ce /test/files/neg/t6895.check | |
parent | a3beedac5b957e3954be288b1be7c52a1d7d31b0 (diff) | |
download | scala-1531900bffb2bed6288eda4e0945b0e6dea3f23d.tar.gz scala-1531900bffb2bed6288eda4e0945b0e6dea3f23d.tar.bz2 scala-1531900bffb2bed6288eda4e0945b0e6dea3f23d.zip |
SI-6895 Test cases to explain the limitations in tcpoly inference
I've determined that the failure in this bug report boils down
to SI-2712. Submitting my working as neg tests for posterity.
The type error disabmiguator develops a serious stutter with this
example. I'll fix that in the following commit.
Diffstat (limited to 'test/files/neg/t6895.check')
-rw-r--r-- | test/files/neg/t6895.check | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/files/neg/t6895.check b/test/files/neg/t6895.check new file mode 100644 index 0000000000..df01031fff --- /dev/null +++ b/test/files/neg/t6895.check @@ -0,0 +1,6 @@ +t6895.scala:19: error: polymorphic expression cannot be instantiated to expected type; + found : [F3[F3_P]]Foo[F3] + required: Foo[[X3]Bar[[X1]String]] + val nok: Foo[({type L[X3] = Bar[M]})#L] = barFoo /* Type inference can't unify F with L */ + ^ +one error found |