From e8687d683b7cb1642f007b991da420caba9b4898 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Sun, 8 Nov 2015 12:47:47 +0100 Subject: 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. --- tests/pos/lazyValsSepComp.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/pos') 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) } -- cgit v1.2.3