Fixed bug in TypeUtils.intersect().
For "Foo", "Foo?" it returned "{Foo}" instead of "Foo"
This commit is contained in:
@@ -199,6 +199,10 @@ public class JetTypeCheckerTest extends JetLiteFixture {
|
||||
}
|
||||
|
||||
public void testIntersect() throws Exception {
|
||||
assertIntersection("Number", "Number?", "Hashable");
|
||||
assertIntersection("Number", "Hashable", "Number?");
|
||||
assertIntersection("Hashable", "Hashable?", "Hashable");
|
||||
|
||||
assertIntersection("Int?", "Int?", "Int?");
|
||||
assertIntersection("Int", "Int?", "Int");
|
||||
assertIntersection("Int", "Int", "Int?");
|
||||
|
||||
Reference in New Issue
Block a user