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