|
6 | 6 | 14 | val b = js.constructorOf[NativeJSObject.type] // error
|
7 | 7 | | ^^^^^^^^^^^^^^^^^^^
|
8 | 8 | | NativeJSObject.type is not a class type
|
| 9 | + | |
| 10 | + | longer explanation available when compiling with `-explain` |
9 | 11 | -- [E170] Type Error: tests/neg-scalajs/jsconstructorof-error-in-prepjsinterop.scala:16:27 -----------------------------
|
10 | 12 | 16 | val c = js.constructorOf[NativeJSClass with NativeJSTrait] // error
|
11 | 13 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
12 | 14 | | NativeJSClass & NativeJSTrait is not a class type
|
| 15 | + | |
| 16 | + | longer explanation available when compiling with `-explain` |
13 | 17 | -- [E170] Type Error: tests/neg-scalajs/jsconstructorof-error-in-prepjsinterop.scala:17:27 -----------------------------
|
14 | 18 | 17 | val d = js.constructorOf[NativeJSClass { def bar: Int }] // error
|
15 | 19 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
16 | 20 | | NativeJSClass{def bar: Int} is not a class type
|
| 21 | + | |
| 22 | + | longer explanation available when compiling with `-explain` |
17 | 23 | -- Error: tests/neg-scalajs/jsconstructorof-error-in-prepjsinterop.scala:19:27 -----------------------------------------
|
18 | 24 | 19 | val e = js.constructorOf[JSTrait] // error
|
19 | 25 | | ^^^^^^^
|
|
22 | 28 | 20 | val f = js.constructorOf[JSObject.type] // error
|
23 | 29 | | ^^^^^^^^^^^^^
|
24 | 30 | | JSObject.type is not a class type
|
| 31 | + | |
| 32 | + | longer explanation available when compiling with `-explain` |
25 | 33 | -- [E170] Type Error: tests/neg-scalajs/jsconstructorof-error-in-prepjsinterop.scala:22:27 -----------------------------
|
26 | 34 | 22 | val g = js.constructorOf[JSClass with JSTrait] // error
|
27 | 35 | | ^^^^^^^^^^^^^^^^^^^^
|
28 | 36 | | JSClass & JSTrait is not a class type
|
| 37 | + | |
| 38 | + | longer explanation available when compiling with `-explain` |
29 | 39 | -- [E170] Type Error: tests/neg-scalajs/jsconstructorof-error-in-prepjsinterop.scala:23:27 -----------------------------
|
30 | 40 | 23 | val h = js.constructorOf[JSClass { def bar: Int }] // error
|
31 | 41 | | ^^^^^^^^^^^^^^^^^^^^^^^^
|
32 | 42 | | JSClass{def bar: Int} is not a class type
|
| 43 | + | |
| 44 | + | longer explanation available when compiling with `-explain` |
33 | 45 | -- [E170] Type Error: tests/neg-scalajs/jsconstructorof-error-in-prepjsinterop.scala:25:42 -----------------------------
|
34 | 46 | 25 | def foo[A <: js.Any] = js.constructorOf[A] // error
|
35 | 47 | | ^
|
36 | 48 | | A is not a class type
|
| 49 | + | |
| 50 | + | longer explanation available when compiling with `-explain` |
37 | 51 | -- [E170] Type Error: tests/neg-scalajs/jsconstructorof-error-in-prepjsinterop.scala:26:66 -----------------------------
|
38 | 52 | 26 | def bar[A <: js.Any: scala.reflect.ClassTag] = js.constructorOf[A] // error
|
39 | 53 | | ^
|
40 | 54 | | A is not a class type
|
| 55 | + | |
| 56 | + | longer explanation available when compiling with `-explain` |
0 commit comments