diff options
author | Martin Odersky <odersky@gmail.com> | 2016-06-04 18:21:11 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2016-07-11 13:35:00 +0200 |
commit | 939d9da26ee5992c17cd1fae0a501ed66a49fb95 (patch) | |
tree | 7efeb8e2cc3f4fdcfcbbf8b06051b3b4fc55240b /tests/neg | |
parent | ae1f248ff407b231455a43ecbaf4751c0bb2bbaa (diff) | |
download | dotty-939d9da26ee5992c17cd1fae0a501ed66a49fb95.tar.gz dotty-939d9da26ee5992c17cd1fae0a501ed66a49fb95.tar.bz2 dotty-939d9da26ee5992c17cd1fae0a501ed66a49fb95.zip |
Add a second betaReduce
The new one only reduces straight applications of type lambdas with
definite arguments. It is called very early on appliedTo, and derivedRefinedType.
The old one, now renamed to normalizeHkApply also handles wildcard arguments
and can garbage collect general unneeded hk-refinements. It is called later, at various
places.
TODO: See what functionality of normalizeHkApply should go into betaReduce instead.
Maybe we can even drop normalizeHkApply? However: need to be careful to maintain aliases
for hk type inference.
Diffstat (limited to 'tests/neg')
-rw-r--r-- | tests/neg/hklower.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/neg/hklower.scala b/tests/neg/hklower.scala index 5c1ba27ba..e29a1545e 100644 --- a/tests/neg/hklower.scala +++ b/tests/neg/hklower.scala @@ -1,4 +1,4 @@ -class Test { // error conflicting bounds +class Test { type T[X] // OK type U[X] = T[X] // OK |