aboutsummaryrefslogtreecommitdiff
path: root/tests/pos
diff options
context:
space:
mode:
authorGuillaume Martres <smarter@ubuntu.com>2017-03-18 19:50:16 +0100
committerGitHub <noreply@github.com>2017-03-18 19:50:16 +0100
commit215c13408f7709c416baf561c513159622f10ba5 (patch)
treea186ebcfd2bc648b1e3f7cf9b58dbba57e5cd88a /tests/pos
parent3ec16c78bd8a90f1205bb9047969ab3fd9e8dd75 (diff)
parent675892a4aaa77a4e71faa6057b4a0a059acb408d (diff)
downloaddotty-215c13408f7709c416baf561c513159622f10ba5.tar.gz
dotty-215c13408f7709c416baf561c513159622f10ba5.tar.bz2
dotty-215c13408f7709c416baf561c513159622f10ba5.zip
Merge pull request #2110 from dotty-staging/fix/reduce-more-lambdas
Reduce type lambdas even if variance changes
Diffstat (limited to 'tests/pos')
-rw-r--r--tests/pos/hk-reduce-variance.scala3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/pos/hk-reduce-variance.scala b/tests/pos/hk-reduce-variance.scala
new file mode 100644
index 000000000..c69777992
--- /dev/null
+++ b/tests/pos/hk-reduce-variance.scala
@@ -0,0 +1,3 @@
+class Cov[+A](a: A) {
+ def foo = Seq(a)
+}