How to parametrize InputStreamResource properly?

View: New views
1 Messages — Rating Filter:   Alert me  

How to parametrize InputStreamResource properly?

by Stepan Koltsov :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi, all.

I've got a problem. How to parametrize InputStreamResource properly to
make assignment possible:

val fileResource: InputStreamResource[FileInputStream] = ...
val resource: InputStreamResource[InputStream] = fileResource

?

Just adding + to type parameter makes code not compileable.

S.