Intersection type not accepted as upper bound of a generic type parameter
Closed this issue · 2 comments
andrelfpinto commented
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.
andrelfpinto commented
It is exactly what I would say after seeing your response about typeDesc
.