Load module annotations in IDE
#KT-22759 Fixed
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user