aboutsummaryrefslogtreecommitdiff
path: root/tests/pos
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2015-11-08 12:47:47 +0100
committerMartin Odersky <odersky@gmail.com>2015-11-09 15:45:40 +0100
commite8687d683b7cb1642f007b991da420caba9b4898 (patch)
treeff6d0e4833fc0e716f1257fda8e5820e4e4621e1 /tests/pos
parenta1bd4dc57c9f1dbf548fa9f6ea3c4d2895ca1d35 (diff)
downloaddotty-e8687d683b7cb1642f007b991da420caba9b4898.tar.gz
dotty-e8687d683b7cb1642f007b991da420caba9b4898.tar.bz2
dotty-e8687d683b7cb1642f007b991da420caba9b4898.zip
Make symbol methods in Definitions depend on implicit context
Otherwise they would always return the symbol in the original context where Definitions was first created. Also, cache two more arrays of symbols per run.
Diffstat (limited to 'tests/pos')
-rw-r--r--tests/pos/lazyValsSepComp.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/pos/lazyValsSepComp.scala b/tests/pos/lazyValsSepComp.scala
index 337447280..1a7e37020 100644
--- a/tests/pos/lazyValsSepComp.scala
+++ b/tests/pos/lazyValsSepComp.scala
@@ -12,5 +12,5 @@ import dotty.tools.dotc.core.Contexts._
object Foo {
val definitions: Definitions = null
def defn = definitions
- def go = defn.FunctionClass(0)
+ def go = defn.FunctionType(0)
}