FIR: resolve function type parameters

This commit is contained in:
Mikhail Glukhikh
2018-03-21 20:21:44 +03:00
parent 25ae12fe07
commit 9aaec1efda
6 changed files with 78 additions and 2 deletions
+7
View File
@@ -0,0 +1,7 @@
interface Any
inline fun <reified T : Any> Any.safeAs(): T? = this as? T
abstract class Summator {
abstract fun <T> plus(first: T, second: T): T
}
+10
View File
@@ -0,0 +1,10 @@
FILE: genericFunctions.kt
(resolved) public? abstract interface Any() {
}
<reified T : Any> public? final? inline function safeAsR/Any/.(): R/T/ {
STUB
}
(resolved) public? abstract class Summator() {
<T> public? abstract function plus(first: R/T/, second: R/T/): R/T/
}