[FIR-TEST] Add new testdata generated after changes in previous commit
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER -REDUNDANT_PROJECTION
|
||||
|
||||
class In<in T>() {
|
||||
fun f(t : T) {}
|
||||
fun f(t : Int) = t
|
||||
}
|
||||
|
||||
fun test1(x: In<String>): Unit = x.f("1")
|
||||
fun test2(x: In<in String>): Unit = x.f("1")
|
||||
fun test3(x: In<out String>): Unit = x.f("1")
|
||||
fun test4(x: In<*>): Unit = x.f("1")
|
||||
Reference in New Issue
Block a user