KT-4881 Annotation resolved to package should be compile-time error
#KT-4881 Fixed
This commit is contained in:
@@ -6,7 +6,7 @@ fun sample(): Input {
|
||||
return Input("Hello", "World");
|
||||
}
|
||||
|
||||
test fun testForEachLine() {
|
||||
fun testForEachLine() {
|
||||
val list = ArrayList<String>()
|
||||
val reader = sample()
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ fun sample(): Input {
|
||||
return Input("Hello", "World");
|
||||
}
|
||||
|
||||
test fun testForEachLine() {
|
||||
fun testForEachLine() {
|
||||
val list = ArrayList<String>()
|
||||
val reader = sample()
|
||||
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
// FILE: a.kt
|
||||
|
||||
package foo
|
||||
|
||||
// FILE: b.kt
|
||||
|
||||
<!UNRESOLVED_REFERENCE!>foo<!> fun bar(p: <!UNRESOLVED_REFERENCE!>foo<!>): <!UNRESOLVED_REFERENCE!>foo<!> = null!!
|
||||
@@ -0,0 +1,6 @@
|
||||
package
|
||||
|
||||
[ERROR : foo]() internal fun bar(/*0*/ p: [ERROR : foo]): [ERROR : foo]
|
||||
|
||||
package foo {
|
||||
}
|
||||
Reference in New Issue
Block a user