Skip to content

Commit 213b4dd

Browse files
committed
Update sjs check files
1 parent 3c1328d commit 213b4dd

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

tests/neg-scalajs/jsconstructorof-error-in-prepjsinterop.check

+8-8
Original file line numberDiff line numberDiff line change
@@ -2,39 +2,39 @@
22
13 | val a = js.constructorOf[NativeJSTrait] // error
33
| ^^^^^^^^^^^^^
44
| non-trait class type required but NativeJSTrait found
5-
-- Error: tests/neg-scalajs/jsconstructorof-error-in-prepjsinterop.scala:14:27 -----------------------------------------
5+
-- [E079] Type Error: tests/neg-scalajs/jsconstructorof-error-in-prepjsinterop.scala:14:27 -----------------------------
66
14 | val b = js.constructorOf[NativeJSObject.type] // error
77
| ^^^^^^^^^^^^^^^^^^^
88
| NativeJSObject.type is not a class type
9-
-- Error: tests/neg-scalajs/jsconstructorof-error-in-prepjsinterop.scala:16:27 -----------------------------------------
9+
-- [E079] Type Error: tests/neg-scalajs/jsconstructorof-error-in-prepjsinterop.scala:16:27 -----------------------------
1010
16 | val c = js.constructorOf[NativeJSClass with NativeJSTrait] // error
1111
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1212
| NativeJSClass & NativeJSTrait is not a class type
13-
-- Error: tests/neg-scalajs/jsconstructorof-error-in-prepjsinterop.scala:17:27 -----------------------------------------
13+
-- [E079] Type Error: tests/neg-scalajs/jsconstructorof-error-in-prepjsinterop.scala:17:27 -----------------------------
1414
17 | val d = js.constructorOf[NativeJSClass { def bar: Int }] // error
1515
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1616
| NativeJSClass{bar: Int} is not a class type
1717
-- Error: tests/neg-scalajs/jsconstructorof-error-in-prepjsinterop.scala:19:27 -----------------------------------------
1818
19 | val e = js.constructorOf[JSTrait] // error
1919
| ^^^^^^^
2020
| non-trait class type required but JSTrait found
21-
-- Error: tests/neg-scalajs/jsconstructorof-error-in-prepjsinterop.scala:20:27 -----------------------------------------
21+
-- [E079] Type Error: tests/neg-scalajs/jsconstructorof-error-in-prepjsinterop.scala:20:27 -----------------------------
2222
20 | val f = js.constructorOf[JSObject.type] // error
2323
| ^^^^^^^^^^^^^
2424
| JSObject.type is not a class type
25-
-- Error: tests/neg-scalajs/jsconstructorof-error-in-prepjsinterop.scala:22:27 -----------------------------------------
25+
-- [E079] Type Error: tests/neg-scalajs/jsconstructorof-error-in-prepjsinterop.scala:22:27 -----------------------------
2626
22 | val g = js.constructorOf[JSClass with JSTrait] // error
2727
| ^^^^^^^^^^^^^^^^^^^^
2828
| JSClass & JSTrait is not a class type
29-
-- Error: tests/neg-scalajs/jsconstructorof-error-in-prepjsinterop.scala:23:27 -----------------------------------------
29+
-- [E079] Type Error: tests/neg-scalajs/jsconstructorof-error-in-prepjsinterop.scala:23:27 -----------------------------
3030
23 | val h = js.constructorOf[JSClass { def bar: Int }] // error
3131
| ^^^^^^^^^^^^^^^^^^^^^^^^
3232
| JSClass{bar: Int} is not a class type
33-
-- Error: tests/neg-scalajs/jsconstructorof-error-in-prepjsinterop.scala:25:42 -----------------------------------------
33+
-- [E079] Type Error: tests/neg-scalajs/jsconstructorof-error-in-prepjsinterop.scala:25:42 -----------------------------
3434
25 | def foo[A <: js.Any] = js.constructorOf[A] // error
3535
| ^
3636
| A is not a class type
37-
-- Error: tests/neg-scalajs/jsconstructorof-error-in-prepjsinterop.scala:26:66 -----------------------------------------
37+
-- [E079] Type Error: tests/neg-scalajs/jsconstructorof-error-in-prepjsinterop.scala:26:66 -----------------------------
3838
26 | def bar[A <: js.Any: scala.reflect.ClassTag] = js.constructorOf[A] // error
3939
| ^
4040
| A is not a class type

tests/neg-scalajs/jsconstructortag-error-in-prepjsinterop.check

+8-8
Original file line numberDiff line numberDiff line change
@@ -2,39 +2,39 @@
22
13 | val a = js.constructorTag[NativeJSTrait] // error
33
| ^
44
| non-trait class type required but NativeJSTrait found
5-
-- Error: tests/neg-scalajs/jsconstructortag-error-in-prepjsinterop.scala:14:48 ----------------------------------------
5+
-- [E079] Type Error: tests/neg-scalajs/jsconstructortag-error-in-prepjsinterop.scala:14:48 ----------------------------
66
14 | val b = js.constructorTag[NativeJSObject.type] // error
77
| ^
88
| NativeJSObject.type is not a class type
9-
-- Error: tests/neg-scalajs/jsconstructortag-error-in-prepjsinterop.scala:16:61 ----------------------------------------
9+
-- [E079] Type Error: tests/neg-scalajs/jsconstructortag-error-in-prepjsinterop.scala:16:61 ----------------------------
1010
16 | val c = js.constructorTag[NativeJSClass with NativeJSTrait] // error
1111
| ^
1212
| (NativeJSClass & NativeJSTrait) is not a class type
13-
-- Error: tests/neg-scalajs/jsconstructortag-error-in-prepjsinterop.scala:17:59 ----------------------------------------
13+
-- [E079] Type Error: tests/neg-scalajs/jsconstructortag-error-in-prepjsinterop.scala:17:59 ----------------------------
1414
17 | val d = js.constructorTag[NativeJSClass { def bar: Int }] // error
1515
| ^
1616
| NativeJSClass{bar: Int} is not a class type
1717
-- Error: tests/neg-scalajs/jsconstructortag-error-in-prepjsinterop.scala:19:36 ----------------------------------------
1818
19 | val e = js.constructorTag[JSTrait] // error
1919
| ^
2020
| non-trait class type required but JSTrait found
21-
-- Error: tests/neg-scalajs/jsconstructortag-error-in-prepjsinterop.scala:20:42 ----------------------------------------
21+
-- [E079] Type Error: tests/neg-scalajs/jsconstructortag-error-in-prepjsinterop.scala:20:42 ----------------------------
2222
20 | val f = js.constructorTag[JSObject.type] // error
2323
| ^
2424
| JSObject.type is not a class type
25-
-- Error: tests/neg-scalajs/jsconstructortag-error-in-prepjsinterop.scala:22:49 ----------------------------------------
25+
-- [E079] Type Error: tests/neg-scalajs/jsconstructortag-error-in-prepjsinterop.scala:22:49 ----------------------------
2626
22 | val g = js.constructorTag[JSClass with JSTrait] // error
2727
| ^
2828
| (JSClass & JSTrait) is not a class type
29-
-- Error: tests/neg-scalajs/jsconstructortag-error-in-prepjsinterop.scala:23:53 ----------------------------------------
29+
-- [E079] Type Error: tests/neg-scalajs/jsconstructortag-error-in-prepjsinterop.scala:23:53 ----------------------------
3030
23 | val h = js.constructorTag[JSClass { def bar: Int }] // error
3131
| ^
3232
| JSClass{bar: Int} is not a class type
33-
-- Error: tests/neg-scalajs/jsconstructortag-error-in-prepjsinterop.scala:25:45 ----------------------------------------
33+
-- [E079] Type Error: tests/neg-scalajs/jsconstructortag-error-in-prepjsinterop.scala:25:45 ----------------------------
3434
25 | def foo[A <: js.Any] = js.constructorTag[A] // error
3535
| ^
3636
| A is not a class type
37-
-- Error: tests/neg-scalajs/jsconstructortag-error-in-prepjsinterop.scala:26:69 ----------------------------------------
37+
-- [E079] Type Error: tests/neg-scalajs/jsconstructortag-error-in-prepjsinterop.scala:26:69 ----------------------------
3838
26 | def bar[A <: js.Any: scala.reflect.ClassTag] = js.constructorTag[A] // error
3939
| ^
4040
| A is not a class type

0 commit comments

Comments
 (0)