sjrd/scala-js-ts-importer

Intersection type not accepted as upper bound of a generic type parameter

Closed this issue · 2 comments

Running:

sbt 'run simple.ts Simple.scala'

With a file simple.ts:

interface A {}
interface B {}

function f<T extends A & B>(t: T) {
}

I get:

Parse error at 4.24
'`>'' expected but `&' found
function f<T extends A & B>(t: T) {
                       ^
sjrd commented

This would be fixed in one sweep with the same fix as for #66, so I'm going to close this as duplicate.

It is exactly what I would say after seeing your response about typeDesc.