Created JetScope.memberScopeAsFileScope()

This commit is contained in:
Stanislav Erokhin
2015-08-19 18:10:05 +03:00
parent aa3be395a4
commit 2a0159f23b
6 changed files with 141 additions and 16 deletions
@@ -0,0 +1,8 @@
val Int.foo: Int
get() = this
fun test(foo: Int) {
test(4.foo)
test(foo)
}
@@ -0,0 +1,4 @@
package
internal val kotlin.Int.foo: kotlin.Int
internal fun test(/*0*/ foo: kotlin.Int): kotlin.Unit
@@ -0,0 +1,9 @@
class A(foo: Int.() -> Unit) {
init {
4.foo()
}
}
fun test(foo: Int.() -> Unit) {
4.foo()
}
@@ -0,0 +1,10 @@
package
internal fun test(/*0*/ foo: kotlin.Int.() -> kotlin.Unit): kotlin.Unit
internal final class A {
public constructor A(/*0*/ foo: kotlin.Int.() -> kotlin.Unit)
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
}