diff options
author | Martin Odersky <odersky@gmail.com> | 2016-11-29 19:34:33 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2016-11-29 19:35:30 +0100 |
commit | e7a0d03f0d29b4644b09b0a36fb3557849d6cf72 (patch) | |
tree | 7094746ccadc200b14863a947f55e1a2fb170528 /compiler/src/dotty/tools/dotc/core/Scopes.scala | |
parent | f7001a4b6e83307cc8299b049cb23c79d004f0e2 (diff) | |
download | dotty-e7a0d03f0d29b4644b09b0a36fb3557849d6cf72.tar.gz dotty-e7a0d03f0d29b4644b09b0a36fb3557849d6cf72.tar.bz2 dotty-e7a0d03f0d29b4644b09b0a36fb3557849d6cf72.zip |
Create FunctionN types on demand
We know create FunctionN types on demand whenever their name
is looked up in the scope of package `scala`. This obviates
the need to predefine function traits 23 to 30.
Diffstat (limited to 'compiler/src/dotty/tools/dotc/core/Scopes.scala')
-rw-r--r-- | compiler/src/dotty/tools/dotc/core/Scopes.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/src/dotty/tools/dotc/core/Scopes.scala b/compiler/src/dotty/tools/dotc/core/Scopes.scala index 3daa8117e..6090079e5 100644 --- a/compiler/src/dotty/tools/dotc/core/Scopes.scala +++ b/compiler/src/dotty/tools/dotc/core/Scopes.scala @@ -309,7 +309,7 @@ object Scopes { /** Lookup a symbol entry matching given name. */ - override final def lookupEntry(name: Name)(implicit ctx: Context): ScopeEntry = { + override def lookupEntry(name: Name)(implicit ctx: Context): ScopeEntry = { var e: ScopeEntry = null if (hashTable ne null) { e = hashTable(name.hashCode & (hashTable.length - 1)) |