Load module annotations in IDE

#KT-22759 Fixed
This commit is contained in:
Alexander Udalov
2018-01-25 17:53:57 +01:00
parent 890374a42a
commit 21e2a3c0b4
13 changed files with 193 additions and 10 deletions
@@ -0,0 +1,8 @@
package lib
@Experimental
annotation class ExperimentalAPI
class Foo
fun bar() {}
@@ -0,0 +1,14 @@
package usage
import lib.*
fun fail(foo: <error>Foo</error>): <error>Foo</error> {
<error>bar</error>()
return foo
}
@ExperimentalAPI
fun ok(foo: Foo): Foo {
bar()
return foo
}
@@ -0,0 +1,8 @@
package lib
@Experimental
annotation class ExperimentalAPI
class Foo
fun bar() {}
@@ -0,0 +1,14 @@
package usage
import lib.*
fun fail(foo: <error>Foo</error>): <error>Foo</error> {
<error>bar</error>()
return foo
}
@ExperimentalAPI
fun ok(foo: Foo): Foo {
bar()
return foo
}