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

TreeMultimap builder does not work correctly #1249

Closed
danieldietrich opened this issue Mar 30, 2016 · 0 comments
Closed

TreeMultimap builder does not work correctly #1249

danieldietrich opened this issue Mar 30, 2016 · 0 comments

Comments

@danieldietrich
Copy link
Contributor

import javaslang.collection.LinkedHashMultimap;
import javaslang.collection.TreeMultimap;

public class Test {

    public static void main(String[] args) {

        LinkedHashMultimap<Integer, String> mm1 = LinkedHashMultimap.withSeq().of(1, "1", 2, "2");

        System.out.println(mm1);

        // This does not compile, the types cannot be inferred
        final TreeMultimap<Integer, String> mm2 = TreeMultimap.withSeq().withKeyComparator(null).of(1, "1", 2, "3");

        System.out.println(mm1.equals(mm2));

    }
}
@danieldietrich danieldietrich added this to the 2.1.0 milestone Mar 30, 2016
@danieldietrich danieldietrich self-assigned this Mar 30, 2016
@danieldietrich danieldietrich modified the milestones: 2.0.5, 2.1.0 Nov 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant