KT-4881 Annotation resolved to package should be compile-time error

#KT-4881 Fixed
This commit is contained in:
Andrey Breslav
2014-12-23 15:18:18 +03:00
parent 8ff5cf62cc
commit 6728a384e4
10 changed files with 70 additions and 13 deletions
@@ -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 {
}