Inline function: add extra tests taken from intellij-community

This commit is contained in:
Mikhail Glukhikh
2017-03-30 17:21:46 +03:00
parent b8b7d1f644
commit 8cfcd7e5a6
37 changed files with 661 additions and 0 deletions
@@ -0,0 +1,29 @@
class Element {
var id: String? = null
fun method(element: Element): String {
return id + element.id
}
fun staticMethod(element: Element): String {
val buffer = StringBuffer()
buffer.append(element.id)
return buffer.toString()
}
companion object {
fun toXML(element: Element): Element {
val el = X("El")
el.setAttribute("attr", element.id)
return el
}
}
}
class Usage {
fun staticMethod(element: Element): String {
val buffer = StringBuffer()
buffer.append(element.id)
return buffer.toString()
}
}