Skip to content

Commit f6b2c25

Browse files
committed
Add missing parameter and SemanticDB compilation to bootstrapped tests
1 parent fdde912 commit f6b2c25

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

project/scripts/bootstrapCmdTests

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,7 @@ test "$EXPECTED_OUTPUT" = "$(cat "$tmp")"
3535
echo "testing ./bin/dotd"
3636
clear_out "$OUT"
3737
./bin/dotd -project Hello -siteroot "$OUT" "$SOURCE"
38+
39+
echo "testing SemanticDB compilation"
40+
clear_out "$OUT"
41+
"$SBT" "dotty-semanticdb/compile" > "$tmp"

semanticdb/src/dotty/semanticdb/SemanticdbConsumer.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -756,7 +756,7 @@ class SemanticdbConsumer(sourceFilePath: java.nio.file.Path) extends TastyConsum
756756

757757
override def traverseTree(tree: Tree)(implicit ctx: Context): Unit = {
758758
tree match {
759-
case Import(path, selectors) =>
759+
case Import(_, path, selectors) =>
760760
val key = (tree.symbol.trueName, tree.pos.start)
761761
if (!packageDefinitions(key)) {
762762
packageDefinitions += key

0 commit comments

Comments
 (0)