Skip to content

Commit 03f1021

Browse files
committed
Fix IDE to use new IFT syntax
1 parent b135a88 commit 03f1021

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

language-server/test/dotty/tools/languageserver/util/CodeTester.scala

+2-2
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ class CodeTester(projects: List[Project]) {
195195

196196
private def doAction(action: Action): this.type = {
197197
try {
198-
action.execute()(testServer, testServer.client, positions)
198+
action.execute() with (testServer, testServer.client, positions)
199199
} catch {
200200
case ex: AssertionError =>
201201
val sourcesStr =
@@ -210,7 +210,7 @@ class CodeTester(projects: List[Project]) {
210210
|
211211
|$sourcesStr
212212
|
213-
|while executing action: ${action.show(positions)}
213+
|while executing action: ${action.show with positions}
214214
|
215215
""".stripMargin
216216
val assertionError = new AssertionError(msg + ex.getMessage)

language-server/test/dotty/tools/languageserver/util/PositionContext.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ class PositionContext(positionMap: Map[CodeMarker, (TestFile, Int, Int)]) {
2424
}
2525

2626
object PositionContext {
27-
type PosCtx[T] = implicit PositionContext => T
27+
type PosCtx[T] = PositionContext |=> T
2828
}

language-server/test/dotty/tools/languageserver/util/actions/Action.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import PositionContext._
1111
* definition, etc.)
1212
*/
1313
trait Action {
14-
type Exec[T] = implicit (TestServer, TestClient, PositionContext) => T
14+
type Exec[T] = (TestServer, TestClient, PositionContext) |=> T
1515

1616
/** Execute the action. */
1717
def execute(): Exec[Unit]

0 commit comments

Comments
 (0)