Skip to content

Commit 5316777

Browse files
committed
Fix sjs checks
1 parent 21e97a1 commit 5316777

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

tests/neg-scalajs/js-native-members.check

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
13 | def c: Int = 3 // error
5757
| ^
5858
| Concrete members of JS native types may only call js.native.
59-
-- Error: tests/neg-scalajs/js-native-members.scala:14:23 --------------------------------------------------------------
59+
-- Error: tests/neg-scalajs/js-native-members.scala:14:25 --------------------------------------------------------------
6060
14 | def d(x: Int): Int = x + 1 // error
6161
| ^^^^^
6262
| Concrete members of JS native types may only call js.native.

tests/neg-scalajs/js-native-val-defs.check

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
11 | def b: Int = 3 // error
77
| ^
88
| @js.native members may only call js.native.
9-
-- Error: tests/neg-scalajs/js-native-val-defs.scala:14:23 -------------------------------------------------------------
9+
-- Error: tests/neg-scalajs/js-native-val-defs.scala:14:25 -------------------------------------------------------------
1010
14 | def c(x: Int): Int = x + 1 // error
1111
| ^^^^^
1212
| @js.native members may only call js.native.

tests/neg-scalajs/js-trait-members.check

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
12 | var c2: Int = 5 // error
2323
| ^^^^^^^^^^^^^^^
2424
| Members of non-native JS traits must either be abstract, or their right-hand-side must be `js.undefined`.
25-
-- Error: tests/neg-scalajs/js-trait-members.scala:14:24 ---------------------------------------------------------------
25+
-- Error: tests/neg-scalajs/js-trait-members.scala:14:26 ---------------------------------------------------------------
2626
14 | def d1(x: Int): Int = x + 1 // error
2727
| ^^^^^
2828
| In non-native JS traits, defs with parentheses must be abstract.

0 commit comments

Comments
 (0)