[FIR-TEST] Add new testdata generated after changes in previous commit
This commit is contained in:
Vendored
+25
@@ -0,0 +1,25 @@
|
||||
class Test {
|
||||
private fun <T : Any> T.self() = object {
|
||||
fun bar(): T {
|
||||
return this@self
|
||||
}
|
||||
}
|
||||
fun test() {
|
||||
1.self().bar() <!INAPPLICABLE_CANDIDATE!>+<!> 1
|
||||
}
|
||||
}
|
||||
|
||||
class Foo<R> {
|
||||
private fun <T> bar() = object {
|
||||
fun baz(): Foo<R> {
|
||||
return this@Foo
|
||||
}
|
||||
}
|
||||
|
||||
fun getR(r: R) = r
|
||||
|
||||
fun test() {
|
||||
Foo<Int>().bar<String>().baz().getR(1)
|
||||
Foo<Int>().bar<String>().baz().<!INAPPLICABLE_CANDIDATE!>getR<!>("")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user