[FIR-TEST] Add new testdata generated after changes in previous commit
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
// !CHECK_TYPE
|
||||
|
||||
// A generic funciton is always less specific than a non-generic one
|
||||
fun <T> foo(t : T) : Unit {}
|
||||
fun foo(i : Int) : Int = 1
|
||||
|
||||
fun test() {
|
||||
checkSubtype<Int>(foo(1))
|
||||
checkSubtype<Unit>(foo("s"))
|
||||
}
|
||||
Reference in New Issue
Block a user