diff options
author | Martin Odersky <odersky@gmail.com> | 2016-11-10 16:35:39 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2016-11-10 16:55:30 +0100 |
commit | fb59174be6193d7cb05bea6d375e34ec1cd52f46 (patch) | |
tree | ed15d3de773eb2052fcc02be24a26c104390739c /src/dotty/tools/dotc/core/NameOps.scala | |
parent | 28c2e04dd33b6389a44460f977a97b8691265994 (diff) | |
download | dotty-fb59174be6193d7cb05bea6d375e34ec1cd52f46.tar.gz dotty-fb59174be6193d7cb05bea6d375e34ec1cd52f46.tar.bz2 dotty-fb59174be6193d7cb05bea6d375e34ec1cd52f46.zip |
Don't allow redefinition of core classes
Fixes #1688.
Diffstat (limited to 'src/dotty/tools/dotc/core/NameOps.scala')
-rw-r--r-- | src/dotty/tools/dotc/core/NameOps.scala | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/dotty/tools/dotc/core/NameOps.scala b/src/dotty/tools/dotc/core/NameOps.scala index 48e823e81..4c7f5b0a9 100644 --- a/src/dotty/tools/dotc/core/NameOps.scala +++ b/src/dotty/tools/dotc/core/NameOps.scala @@ -186,6 +186,8 @@ object NameOps { def implClassName: N = likeTyped(name ++ tpnme.IMPL_CLASS_SUFFIX) + def errorName: N = likeTyped(name ++ nme.ERROR) + def freshened(implicit ctx: Context): N = likeTyped( if (name.isModuleClassName) name.stripModuleClassSuffix.freshened.moduleClassName |