[FIR-TEST] Add new testdata generated after changes in previous commit
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
// !WITH_NEW_INFERENCE
|
||||
class Point() {
|
||||
}
|
||||
|
||||
class G<T>() {}
|
||||
|
||||
fun <T> f(expression : T) : G<out T> = G<T>()
|
||||
|
||||
|
||||
fun foo() : G<Point> {
|
||||
val p = Point()
|
||||
return f<Point>(p)
|
||||
}
|
||||
|
||||
class Out<out T>() {}
|
||||
|
||||
fun <T> fout(expression : T) : Out<out T> = Out<T>()
|
||||
|
||||
fun fooout() : Out<Point> {
|
||||
val p = Point();
|
||||
return fout<Point>(p);
|
||||
}
|
||||
Reference in New Issue
Block a user