Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OrMultipleVertex doesn't accept standard Kotlin list #448

Closed
ViRb3 opened this issue Jan 20, 2019 · 1 comment
Closed

OrMultipleVertex doesn't accept standard Kotlin list #448

ViRb3 opened this issue Jan 20, 2019 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@ViRb3
Copy link

ViRb3 commented Jan 20, 2019

fun bug_b() {
    val cards = ArrayList<BooleanVertex>()
    for (i in 0 until 10) {
        cards.add(BernoulliVertex(0.5))
    }
    
    // compiler error
    OrMultipleVertex(cards)
    // works
    OrMultipleVertex(cards as Collection<BooleanVertex>)
}

image

@christophernorth
Copy link
Contributor

Thanks for raising - I'll take a look at this!

@christophernorth christophernorth added the question Further information is requested label Jan 22, 2019
@christophernorth christophernorth self-assigned this Jan 22, 2019
@christophernorth christophernorth added bug Something isn't working and removed question Further information is requested labels Jan 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants