tests for obsolete/fixed issues
#KT-1038 fixed #KT-1127 fixed #KT-1145 fixed #KT-1410 fixed #KT-1718 fixed #KT-2286 fixed #KT-1431 fixed #KT-2394 fixed
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
//FILE: a/C.java
|
||||
// KT-1431 StackOverflowException in IDE when using JavaFX builders
|
||||
package a;
|
||||
|
||||
public class C<B extends C<B>> {
|
||||
public static C<?> create() { return null; }
|
||||
public C foo() {return null;}
|
||||
}
|
||||
|
||||
//FILE: d.kt
|
||||
package d
|
||||
|
||||
import a.C
|
||||
|
||||
fun test() {
|
||||
C.create()<!UNSAFE_CALL!>.<!>foo()
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
//KT-2394 java.lang.Iterable<T> should be visible as jet.Iterable<out T>
|
||||
package d
|
||||
|
||||
import java.util.Collection
|
||||
|
||||
fun foo(iterable: Iterable<Int>, iterator: Iterator<Int>, comparable: Comparable<Any>) {
|
||||
iterable : Iterable<Any>
|
||||
iterator : Iterator<Any>
|
||||
comparable : Comparable<String>
|
||||
}
|
||||
|
||||
fun bar(c: Collection<Int>) {
|
||||
c : Iterable<Any>
|
||||
c.iterator() : Iterator<Any>
|
||||
}
|
||||
Reference in New Issue
Block a user