a823bfd600
- encapsulate semantic more into helpers - allow lazy scopes iteration - simplify reporting code in tower resolver - fix some inconsistencies and wrong lookups - remove redundant lookup recordings - remove lookup scopes for non-star imports The commit is a refactoring and doesn't change the behaviour of neither IC nor CRI. Changes in the lookups are mostly due to the previous obviously wrong lookups (see changed test data).
15 lines
521 B
Kotlin
Vendored
15 lines
521 B
Kotlin
Vendored
package foo
|
|
/*p:bar(C)*/import bar.C
|
|
/*p:bar(SAMInterface)*/import bar.SAMInterface
|
|
|
|
/*p:foo*/fun foo(c: /*p:foo*/C) {
|
|
/*p:bar.C(foo) p:foo(foo)*/c.foo()
|
|
/*p:bar(SAMInterface) p:bar.C(foo) p:bar.SAMInterface(<SAM-CONSTRUCTOR>)*/c.foo /*p:kotlin(Function1)*/{ }
|
|
|
|
/*p:bar.C(bar) p:foo p:foo(bar)*/C.bar()
|
|
/*p:bar(SAMInterface) p:bar.C(bar) p:bar.SAMInterface(<SAM-CONSTRUCTOR>) p:foo*/C.bar /*p:kotlin(Function1)*/{}
|
|
|
|
/*p:bar p:foo*/SAMInterface()
|
|
/*p:bar*/SAMInterface /*p:kotlin(Function1)*/{}
|
|
}
|