diff options
author | Guillaume Martres <smarter@ubuntu.com> | 2015-02-15 00:42:50 +0100 |
---|---|---|
committer | Guillaume Martres <smarter@ubuntu.com> | 2015-02-15 00:43:12 +0100 |
commit | 5a81c5db9d3e4b16ff4ac05cc3ee54f81ab91059 (patch) | |
tree | b352ac8e88c9e44b6043cbdea883c37099bfcf48 /tests/pos/i143.scala | |
parent | 2e72811fb1cedb94c7967acf96c92172f010a20b (diff) | |
download | dotty-5a81c5db9d3e4b16ff4ac05cc3ee54f81ab91059.tar.gz dotty-5a81c5db9d3e4b16ff4ac05cc3ee54f81ab91059.tar.bz2 dotty-5a81c5db9d3e4b16ff4ac05cc3ee54f81ab91059.zip |
Fix tests/pos/{i143,extmethods}.scala: value classes must have exactly one val param
Diffstat (limited to 'tests/pos/i143.scala')
-rw-r--r-- | tests/pos/i143.scala | 4 |
1 files changed, 1 insertions, 3 deletions
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 } |