diff options
author | Martin Odersky <odersky@gmail.com> | 2016-12-04 15:55:33 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2016-12-17 18:34:27 +0100 |
commit | d5ff7e052f4c321e3089e0543617f81416e4aed4 (patch) | |
tree | fdbe5b7aaeff10b7cda8945e0eb87d894855d6cc /compiler/src/dotty/tools/dotc/core | |
parent | aecfb37919291f3d191aa3c04f753cc2df4d962a (diff) | |
download | dotty-d5ff7e052f4c321e3089e0543617f81416e4aed4.tar.gz dotty-d5ff7e052f4c321e3089e0543617f81416e4aed4.tar.bz2 dotty-d5ff7e052f4c321e3089e0543617f81416e4aed4.zip |
Fix erasure of implicit functions
and check at runtime that it works
Diffstat (limited to 'compiler/src/dotty/tools/dotc/core')
-rw-r--r-- | compiler/src/dotty/tools/dotc/core/TypeErasure.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/src/dotty/tools/dotc/core/TypeErasure.scala b/compiler/src/dotty/tools/dotc/core/TypeErasure.scala index bc736b229..6b682b028 100644 --- a/compiler/src/dotty/tools/dotc/core/TypeErasure.scala +++ b/compiler/src/dotty/tools/dotc/core/TypeErasure.scala @@ -44,7 +44,7 @@ object TypeErasure { val sym = tp.symbol sym.isClass && sym != defn.AnyClass && sym != defn.ArrayClass && - !defn.isUnimplementedFunctionClass(sym) + !defn.isUnimplementedFunctionClass(sym) && !defn.isImplicitFunctionClass(sym) case _: TermRef => true case JavaArrayType(elem) => |