aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core/Definitions.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2016-03-17 14:00:30 +0100
committerMartin Odersky <odersky@gmail.com>2016-03-18 12:22:46 +0100
commita1a4b9847e3b3d1f63d5c04c57f561708d009a34 (patch)
tree09c98dce3cdc5eb7324d29f23a11f508d7c24a93 /src/dotty/tools/dotc/core/Definitions.scala
parenta675cbf90ce3dee2773aec376125054edefb895f (diff)
downloaddotty-a1a4b9847e3b3d1f63d5c04c57f561708d009a34.tar.gz
dotty-a1a4b9847e3b3d1f63d5c04c57f561708d009a34.tar.bz2
dotty-a1a4b9847e3b3d1f63d5c04c57f561708d009a34.zip
Initialize context in REPL
This broke under the recent introduction of the JS backend, because now the context needs to be initialized before the platform can be selected. So invoking `doti` immediately gave an IllegalStateException. No big deal to fix, but it shows how sorely we are lacking REPL tests.
Diffstat (limited to 'src/dotty/tools/dotc/core/Definitions.scala')
-rw-r--r--src/dotty/tools/dotc/core/Definitions.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/core/Definitions.scala b/src/dotty/tools/dotc/core/Definitions.scala
index 6f8a8f837..d8c882d5c 100644
--- a/src/dotty/tools/dotc/core/Definitions.scala
+++ b/src/dotty/tools/dotc/core/Definitions.scala
@@ -798,7 +798,7 @@ class Definitions {
private[this] var _isInitialized = false
private def isInitialized = _isInitialized
- def init(implicit ctx: Context) = {
+ def init()(implicit ctx: Context) = {
this.ctx = ctx
if (!_isInitialized) {
// force initialization of every symbol that is synthesized or hijacked by the compiler