Test for KT-26 Import namespaces defined in this file
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user