[K2] isUsedAsExpression analysis
This commit is contained in:
committed by
teamcity
parent
d9701c71b7
commit
f765457e51
Vendored
+25
@@ -0,0 +1,25 @@
|
||||
interface I<T> {
|
||||
fun i(t: T): Int
|
||||
}
|
||||
|
||||
<expr>class C<T>(val x: Int): I<T> {
|
||||
companion object {
|
||||
val K: Int = 58
|
||||
}
|
||||
|
||||
fun test(): Int {
|
||||
return 45 * K
|
||||
}
|
||||
|
||||
fun count(xs: List<T>): Int {
|
||||
return xs.size
|
||||
}
|
||||
|
||||
override fun i(t: T): Int {
|
||||
return test() + t.hashCode()
|
||||
}
|
||||
|
||||
inner class B() {
|
||||
|
||||
}
|
||||
}</expr>
|
||||
Reference in New Issue
Block a user