Skip to content

Commit

Permalink
Dots are part of unresolved constructor location
Browse files Browse the repository at this point in the history
  • Loading branch information
JaroslavTulach committed Mar 20, 2024
1 parent f64210a commit d439217
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -870,6 +870,10 @@ class RuntimeServerTest
val contents = metadata.appendToCode(code)
val mainFile = context.writeMain(contents)

metadata.assertInCode(idA, code, "..A")
metadata.assertInCode(idB, code, "..B 42")
metadata.assertInCode(idC, code, "..C a b")

// create context
context.send(Api.Request(requestId, Api.CreateContextRequest(contextId)))
context.receive shouldEqual Some(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1065,7 +1065,7 @@ loc, meta(), diag()
yield new Name.MethodReference(
Option.empty(),
methodName,
methodName.location(),
getIdentifiedLocation(autoscopedIdentifier),
meta(), diag()
);
}
Expand Down

0 comments on commit d439217

Please sign in to comment.