diff options
author | Nicolas Stucki <nicolas.stucki@gmail.com> | 2017-01-11 18:41:58 +0100 |
---|---|---|
committer | Nicolas Stucki <nicolas.stucki@gmail.com> | 2017-01-11 18:41:58 +0100 |
commit | cf57534c6141593fbe2ac2fec9d101fa662ecf05 (patch) | |
tree | 440cddbb105cf313032ff9b6d1d433f379e098a8 /compiler/src/dotty/tools/dotc/Compiler.scala | |
parent | 9f505a42a1c100eedab9748321a77d4bc345af61 (diff) | |
download | dotty-cf57534c6141593fbe2ac2fec9d101fa662ecf05.tar.gz dotty-cf57534c6141593fbe2ac2fec9d101fa662ecf05.tar.bz2 dotty-cf57534c6141593fbe2ac2fec9d101fa662ecf05.zip |
Add PrimitiveForwarders and fix forwarding on value classes.
Diffstat (limited to 'compiler/src/dotty/tools/dotc/Compiler.scala')
-rw-r--r-- | compiler/src/dotty/tools/dotc/Compiler.scala | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/src/dotty/tools/dotc/Compiler.scala b/compiler/src/dotty/tools/dotc/Compiler.scala index 900d2b0e3..1d319242b 100644 --- a/compiler/src/dotty/tools/dotc/Compiler.scala +++ b/compiler/src/dotty/tools/dotc/Compiler.scala @@ -72,6 +72,7 @@ class Compiler { new ElimByName, // Expand by-name parameters and arguments new AugmentScala2Traits, // Expand traits defined in Scala 2.11 to simulate old-style rewritings new ResolveSuper, // Implement super accessors and add forwarders to trait methods + new PrimitiveForwarders, // Add forwarders to trait methods that have a mismatch between generic and primitives new ArrayConstructors), // Intercept creation of (non-generic) arrays and intrinsify. List(new Erasure), // Rewrite types to JVM model, erasing all type parameters, abstract types and refinements. List(new ElimErasedValueType, // Expand erased value types to their underlying implmementation types |