KT-549 type inference failed
KT-580 Type inference failed KT-600 Problem with 'sure' extension function type inference KT-571 Type inference failed
This commit is contained in:
@@ -162,6 +162,22 @@ public class JetTypeCheckerTest extends JetLiteFixture {
|
||||
assertIntersection("Int?", "Int?", "Int?");
|
||||
assertIntersection("Int", "Int?", "Int");
|
||||
assertIntersection("Int", "Int", "Int?");
|
||||
|
||||
assertIntersection("Int", "Any", "Int");
|
||||
assertIntersection("Int", "Int", "Any");
|
||||
|
||||
assertIntersection("Int", "Any", "Int?");
|
||||
assertIntersection("Int", "Int?", "Any");
|
||||
assertIntersection("Int", "Any?", "Int");
|
||||
assertIntersection("Int", "Int", "Any?");
|
||||
|
||||
assertIntersection("Nothing", "Nothing", "Nothing");
|
||||
assertIntersection("Nothing?", "Nothing?", "Nothing?");
|
||||
assertIntersection("Nothing", "Nothing", "Nothing?");
|
||||
assertIntersection("Nothing", "Nothing?", "Nothing");
|
||||
|
||||
assertIntersection("Nothing?", "String?", "Nothing?");
|
||||
assertIntersection("Nothing?", "Nothing?", "String?");
|
||||
}
|
||||
|
||||
public void testBasicSubtyping() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user