[ http://dev.sourcefabric.org/browse/LS-551?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17296#action_17296 ]
David Baelde commented on LS-551: --------------------------------- Yep, I had only seen the problematic example and was about to propose the same workaround. The issue is that our type inference is very shy about subtyping: it sees that strip_blank() produces an active source so it checks that all other sources are active sources. With the first fail(), it gets the type source, and then it is able to see that everything can be seen as a (subtype of) source. I'm not sure how to fix it quickly, I'm drunk right now ;) > fallback (and possibly other) refuses to start with a mixture of active and > regular sources. > -------------------------------------------------------------------------------------------- > > Key: LS-551 > URL: http://dev.sourcefabric.org/browse/LS-551 > Project: Liquidsoap > Issue Type: Bug > Components: Liquidsoap > Affects Versions: 1.0 beta > Reporter: Romain Beauxis > Priority: Blocker > > The following does not work: > output.dummy( > fallback([strip_blank(sine()), sine()]), > fallible=true) > I get: > this value has type > source(_) > but it should be a subtype of (the type of the value at line 1, char 35-42) > active_source(_) > It is my understanding that there should be no technical reasons to prohibit > this and so there must be something to do at the type-checking level.. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://dev.sourcefabric.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------------------------------ Got Input? Slashdot Needs You. Take our quick survey online. Come on, we don't ask for help often. Plus, you'll get a chance to win $100 to spend on ThinkGeek. http://p.sf.net/sfu/slashdot-survey _______________________________________________ Savonet-devl mailing list Savonet-devl@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/savonet-devl