Skip to content

Commit 58194ca

Browse files
committed
Move error message
Without Inlined nodes, the current reporting mechanism cannot properly display the position of the original call. This information is still in the tree but is not tracked.
1 parent 60ee112 commit 58194ca

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/neg/i6371/A_1.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
object A {
22
inline def foo(a: Any): Unit = a match {
3-
case _: Int =>
3+
case _: Int => // error
44
case _ =>
55
}
66
}

tests/neg/i6371/B_2.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
object B {
2-
A.foo("aa") // error
2+
A.foo("aa")
33
}

0 commit comments

Comments
 (0)