Test for KT-26 Import namespaces defined in this file

This commit is contained in:
Andrey Breslav
2011-10-28 18:07:18 +04:00
parent fd22fc7538
commit e55b4491ae
3 changed files with 24 additions and 3 deletions
@@ -0,0 +1,7 @@
// KT-26 Import namespaces defined in this file
namespace foo {
import bar.* // Must not be an error
}
namespace bar {}
@@ -0,0 +1,10 @@
// KT-26 Import namespaces defined in this file
import html.* // Must not be an error
namespace html {
abstract class Factory<T> {
fun create() : T? = null
}
}
+7 -3
View File
@@ -18,7 +18,8 @@ JetFile: Imports_ERR.jet
PsiWhiteSpace(' ')
REFERENCE_EXPRESSION
PsiErrorElement:Expecting qualified name
PsiElement(SEMICOLON)(';')
<empty list>
PsiElement(SEMICOLON)(';')
PsiWhiteSpace('\n')
IMPORT_DIRECTIVE
PsiElement(import)('import')
@@ -27,7 +28,9 @@ JetFile: Imports_ERR.jet
PsiElement(DOT)('.')
REFERENCE_EXPRESSION
PsiErrorElement:Expecting qualified name
PsiElement(MUL)('*')
<empty list>
PsiErrorElement:Expecting namespace or top level declaration
PsiElement(MUL)('*')
PsiWhiteSpace('\n')
IMPORT_DIRECTIVE
PsiElement(import)('import')
@@ -37,7 +40,8 @@ JetFile: Imports_ERR.jet
PsiWhiteSpace(' ')
REFERENCE_EXPRESSION
PsiErrorElement:Expecting qualified name
PsiElement(SEMICOLON)(';')
<empty list>
PsiElement(SEMICOLON)(';')
PsiWhiteSpace('\n\n')
IMPORT_DIRECTIVE
PsiElement(import)('import')