|
2 | 2 | 13 | val a = js.constructorOf[NativeJSTrait] // error |
3 | 3 | | ^^^^^^^^^^^^^ |
4 | 4 | | non-trait class type required but NativeJSTrait found |
5 | | --- Error: tests/neg-scalajs/jsconstructorof-error-in-prepjsinterop.scala:14:27 ----------------------------------------- |
| 5 | +-- [E170] Type Error: tests/neg-scalajs/jsconstructorof-error-in-prepjsinterop.scala:14:27 ----------------------------- |
6 | 6 | 14 | val b = js.constructorOf[NativeJSObject.type] // error |
7 | 7 | | ^^^^^^^^^^^^^^^^^^^ |
8 | 8 | | NativeJSObject.type is not a class type |
9 | | --- Error: tests/neg-scalajs/jsconstructorof-error-in-prepjsinterop.scala:16:27 ----------------------------------------- |
| 9 | +-- [E170] Type Error: tests/neg-scalajs/jsconstructorof-error-in-prepjsinterop.scala:16:27 ----------------------------- |
10 | 10 | 16 | val c = js.constructorOf[NativeJSClass with NativeJSTrait] // error |
11 | 11 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
12 | 12 | | NativeJSClass & NativeJSTrait is not a class type |
13 | | --- Error: tests/neg-scalajs/jsconstructorof-error-in-prepjsinterop.scala:17:27 ----------------------------------------- |
| 13 | +-- [E170] Type Error: tests/neg-scalajs/jsconstructorof-error-in-prepjsinterop.scala:17:27 ----------------------------- |
14 | 14 | 17 | val d = js.constructorOf[NativeJSClass { def bar: Int }] // error |
15 | 15 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
16 | 16 | | NativeJSClass{bar: Int} is not a class type |
17 | 17 | -- Error: tests/neg-scalajs/jsconstructorof-error-in-prepjsinterop.scala:19:27 ----------------------------------------- |
18 | 18 | 19 | val e = js.constructorOf[JSTrait] // error |
19 | 19 | | ^^^^^^^ |
20 | 20 | | non-trait class type required but JSTrait found |
21 | | --- Error: tests/neg-scalajs/jsconstructorof-error-in-prepjsinterop.scala:20:27 ----------------------------------------- |
| 21 | +-- [E170] Type Error: tests/neg-scalajs/jsconstructorof-error-in-prepjsinterop.scala:20:27 ----------------------------- |
22 | 22 | 20 | val f = js.constructorOf[JSObject.type] // error |
23 | 23 | | ^^^^^^^^^^^^^ |
24 | 24 | | JSObject.type is not a class type |
25 | | --- Error: tests/neg-scalajs/jsconstructorof-error-in-prepjsinterop.scala:22:27 ----------------------------------------- |
| 25 | +-- [E170] Type Error: tests/neg-scalajs/jsconstructorof-error-in-prepjsinterop.scala:22:27 ----------------------------- |
26 | 26 | 22 | val g = js.constructorOf[JSClass with JSTrait] // error |
27 | 27 | | ^^^^^^^^^^^^^^^^^^^^ |
28 | 28 | | JSClass & JSTrait is not a class type |
29 | | --- Error: tests/neg-scalajs/jsconstructorof-error-in-prepjsinterop.scala:23:27 ----------------------------------------- |
| 29 | +-- [E170] Type Error: tests/neg-scalajs/jsconstructorof-error-in-prepjsinterop.scala:23:27 ----------------------------- |
30 | 30 | 23 | val h = js.constructorOf[JSClass { def bar: Int }] // error |
31 | 31 | | ^^^^^^^^^^^^^^^^^^^^^^^^ |
32 | 32 | | JSClass{bar: Int} is not a class type |
33 | | --- Error: tests/neg-scalajs/jsconstructorof-error-in-prepjsinterop.scala:25:42 ----------------------------------------- |
| 33 | +-- [E170] Type Error: tests/neg-scalajs/jsconstructorof-error-in-prepjsinterop.scala:25:42 ----------------------------- |
34 | 34 | 25 | def foo[A <: js.Any] = js.constructorOf[A] // error |
35 | 35 | | ^ |
36 | 36 | | A is not a class type |
37 | | --- Error: tests/neg-scalajs/jsconstructorof-error-in-prepjsinterop.scala:26:66 ----------------------------------------- |
| 37 | +-- [E170] Type Error: tests/neg-scalajs/jsconstructorof-error-in-prepjsinterop.scala:26:66 ----------------------------- |
38 | 38 | 26 | def bar[A <: js.Any: scala.reflect.ClassTag] = js.constructorOf[A] // error |
39 | 39 | | ^ |
40 | 40 | | A is not a class type |
0 commit comments