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,6 +18,7 @@ JetFile: Imports_ERR.jet
|
|||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiErrorElement:Expecting qualified name
|
PsiErrorElement:Expecting qualified name
|
||||||
|
<empty list>
|
||||||
PsiElement(SEMICOLON)(';')
|
PsiElement(SEMICOLON)(';')
|
||||||
PsiWhiteSpace('\n')
|
PsiWhiteSpace('\n')
|
||||||
IMPORT_DIRECTIVE
|
IMPORT_DIRECTIVE
|
||||||
@@ -27,6 +28,8 @@ JetFile: Imports_ERR.jet
|
|||||||
PsiElement(DOT)('.')
|
PsiElement(DOT)('.')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiErrorElement:Expecting qualified name
|
PsiErrorElement:Expecting qualified name
|
||||||
|
<empty list>
|
||||||
|
PsiErrorElement:Expecting namespace or top level declaration
|
||||||
PsiElement(MUL)('*')
|
PsiElement(MUL)('*')
|
||||||
PsiWhiteSpace('\n')
|
PsiWhiteSpace('\n')
|
||||||
IMPORT_DIRECTIVE
|
IMPORT_DIRECTIVE
|
||||||
@@ -37,6 +40,7 @@ JetFile: Imports_ERR.jet
|
|||||||
PsiWhiteSpace(' ')
|
PsiWhiteSpace(' ')
|
||||||
REFERENCE_EXPRESSION
|
REFERENCE_EXPRESSION
|
||||||
PsiErrorElement:Expecting qualified name
|
PsiErrorElement:Expecting qualified name
|
||||||
|
<empty list>
|
||||||
PsiElement(SEMICOLON)(';')
|
PsiElement(SEMICOLON)(';')
|
||||||
PsiWhiteSpace('\n\n')
|
PsiWhiteSpace('\n\n')
|
||||||
IMPORT_DIRECTIVE
|
IMPORT_DIRECTIVE
|
||||||
|
|||||||
Reference in New Issue
Block a user