mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-17 08:31:29 +00:00
lookupNamespaceType now returns NamespaceType of a scope not only of the namespace found by name, but also of the classifier static classes scope found by the same name. This allows correct resolution of expressions "Class.Nested.member()", where Class comes from Java (previously it was resolved into a NamespaceDescriptor with a NamespaceType). NamespaceDescriptor.getNamespaceType() is deleted since there are no sense in namespace's NamespaceType alone anymore. Also some minor refactoring (referencedName param is useless) #KT-1174 In Progress
6 lines
84 B
Kotlin
Vendored
6 lines
84 B
Kotlin
Vendored
fun bar(b: Boolean) = b
|
|
|
|
fun foo(data: List<String>) {
|
|
bar(data.contains(""))
|
|
}
|