You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[error] -- Error: /home/olvind/.cache/scalablytyped/ScalablyTyped/s/std/src/main/scala/typings/std/ObjectConstructor.scala:30:6
[error] 30 | def assign[T, U](target: T, source: U): T with U = js.native
[error] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] |The type of assign must be explicitly specified because it is JS native.
Expectation
Should compile.
Notes:
Works in scala 2
Tested with 0.28.0-bin-20200925-f4528ce-NIGHTLY
annotated return type of T & U compiles
T and U could be concrete types and still trigger the error. I have several examples with concrete types, this was just the smallest
Minimized code
Output
Expectation
Should compile.
Notes:
T & U
compilesT
andU
could be concrete types and still trigger the error. I have several examples with concrete types, this was just the smallestval
sThe text was updated successfully, but these errors were encountered: