From 5a81c5db9d3e4b16ff4ac05cc3ee54f81ab91059 Mon Sep 17 00:00:00 2001 From: Guillaume Martres Date: Sun, 15 Feb 2015 00:42:50 +0100 Subject: Fix tests/pos/{i143,extmethods}.scala: value classes must have exactly one val param --- tests/pos/i143.scala | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'tests/pos/i143.scala') diff --git a/tests/pos/i143.scala b/tests/pos/i143.scala index 8804b20ce..1cbccc281 100644 --- a/tests/pos/i143.scala +++ b/tests/pos/i143.scala @@ -5,9 +5,7 @@ import dotty.tools.dotc.core.Denotations._ import dotty.tools.dotc.core.Symbols._ import dotty.tools.dotc.core.Contexts._ -class TC5 extends AnyVal { - implicit val ctx: Context = ??? - +class TC5(val ctx: Context) extends AnyVal { def candidates(mbr: SingleDenotation): Boolean = { mbr.symbol.denot(ctx).exists } -- cgit v1.2.3