Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
硅谷海盗
kotlin
提交
338aad98
K
kotlin
项目概览
硅谷海盗
/
kotlin
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
kotlin
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
338aad98
编写于
1月 29, 2021
作者:
M
Mikhail Glukhikh
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
FIR: run diagnostic "with stdlib" tests also in light tree mode
上级
7d4eaefd
变更
16
展开全部
隐藏空白更改
内联
并排
Showing
16 changed file
with
3980 addition
and
2540 deletion
+3980
-2540
compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/beyoundCalls.kt
...Data/resolveWithStdlib/callableReferences/beyoundCalls.kt
+2
-2
compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/companions.kt
...stData/resolveWithStdlib/callableReferences/companions.kt
+3
-3
compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/fromBasicDiagnosticTests/resolveCallableReferencesAfterAllSimpleArguments.kt
...Tests/resolveCallableReferencesAfterAllSimpleArguments.kt
+2
-2
compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/implicitTypes.kt
...ata/resolveWithStdlib/callableReferences/implicitTypes.kt
+1
-1
compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/javaStatic.kt
...stData/resolveWithStdlib/callableReferences/javaStatic.kt
+1
-1
compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/manyInnermanyOuterCandidatesAmbiguity.kt
...llableReferences/manyInnermanyOuterCandidatesAmbiguity.kt
+1
-1
compiler/fir/analysis-tests/testData/resolveWithStdlib/contracts/fromSource/good/returnsImplies/booleanOperators.kt
...tracts/fromSource/good/returnsImplies/booleanOperators.kt
+2
-2
compiler/fir/analysis-tests/testData/resolveWithStdlib/j+k/JavaVisibility2.kt
...s-tests/testData/resolveWithStdlib/j+k/JavaVisibility2.kt
+3
-3
compiler/fir/analysis-tests/testData/resolveWithStdlib/j+k/KJKComplexHierarchyWithNested.kt
...ta/resolveWithStdlib/j+k/KJKComplexHierarchyWithNested.kt
+2
-2
compiler/fir/analysis-tests/testData/resolveWithStdlib/j+k/KotlinClassParameter.kt
...ts/testData/resolveWithStdlib/j+k/KotlinClassParameter.kt
+1
-1
compiler/fir/analysis-tests/testData/resolveWithStdlib/j+k/KotlinClassParameterGeneric.kt
...Data/resolveWithStdlib/j+k/KotlinClassParameterGeneric.kt
+2
-2
compiler/fir/analysis-tests/testData/resolveWithStdlib/listPlusAssign.kt
...alysis-tests/testData/resolveWithStdlib/listPlusAssign.kt
+2
-2
compiler/fir/analysis-tests/testData/resolveWithStdlib/lowPriorityInResolution.kt
...sts/testData/resolveWithStdlib/lowPriorityInResolution.kt
+3
-3
compiler/fir/analysis-tests/testData/resolveWithStdlib/problems/KJKComplexHierarchyNestedLoop.kt
...solveWithStdlib/problems/KJKComplexHierarchyNestedLoop.kt
+4
-4
compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/FirDiagnosticsWithLightTreeTestGenerated.java
...est/runners/FirDiagnosticsWithLightTreeTestGenerated.java
+3950
-2511
compiler/tests-for-compiler-generator/tests/org/jetbrains/kotlin/test/generators/GenerateJUnit5CompilerTests.kt
...ins/kotlin/test/generators/GenerateJUnit5CompilerTests.kt
+1
-0
未找到文件。
compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/beyoundCalls.kt
浏览文件 @
338aad98
<!
CONFLICTING_OVERLOADS
{
LT
}!><!
CONFLICTING_OVERLOADS
!>
fun
bar
(
x
:
String
):
Int
<
!
>
=
1
<!>
<!
CONFLICTING_OVERLOADS
{
LT
}!><!
CONFLICTING_OVERLOADS
!>
fun
bar
(
x
:
String
):
Double
<
!
>
=
1
<!>
<!
CONFLICTING_OVERLOADS
!>
fun
bar
(
x
:
String
):
Int
<
!
>
=
1
<!
CONFLICTING_OVERLOADS
!>
fun
bar
(
x
:
String
):
Double
<
!
>
=
1
fun
baz
(
x
:
String
):
Int
=
1
fun
<
T
,
R
>
foobaz
(
x
:
T
):
R
=
TODO
()
...
...
compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/companions.kt
浏览文件 @
338aad98
...
...
@@ -31,16 +31,16 @@ fun main() {
foo1
(
KotlinClass
::
baz
)
foo2
(
KotlinClass
::
baz
)
// Ambiguity (companion/class)
<!
AMBIGUITY
!>
foo3
<!>(
KotlinClass
::
baz
)
<!
AMBIGUITY
{
LT
}!><!
AMBIGUITY
{
PSI
}!>
foo3
<!>(
KotlinClass
::
baz
)<!>
// Type mismatch
<!
INAPPLICABLE_CANDIDATE
!>
foo1
<!>(<!
UNRESOLVED_REFERENCE
!>
KotlinClass
::
bar
<!>)
<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
foo1
<!>(<!
UNRESOLVED_REFERENCE
!>
KotlinClass
::
bar
<!>)<!>
foo2
(
KotlinClass
::
bar
)
foo3
(
KotlinClass
::
bar
)
foo1
(
KotlinClass2
::
bar
)
// Type mismatch
<!
INAPPLICABLE_CANDIDATE
!>
foo2
<!>(<!
UNRESOLVED_REFERENCE
!>
KotlinClass2
::
bar
<!>)
<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
foo2
<!>(<!
UNRESOLVED_REFERENCE
!>
KotlinClass2
::
bar
<!>)<!>
foo3
(
KotlinClass2
::
bar
)
}
compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/fromBasicDiagnosticTests/resolveCallableReferencesAfterAllSimpleArguments.kt
浏览文件 @
338aad98
...
...
@@ -7,6 +7,6 @@ fun <T> bar(f: (T) -> Unit, e: T) {}
fun
<
T
>
baz
(
e
:
T
,
f
:
(
T
)
->
Unit
)
{}
fun
test
(
a
:
A
,
b
:
B
)
{
<!
INAPPLICABLE_CANDIDATE
!>
baz
<!>(
a
,
<!
UNRESOLVED_REFERENCE
!>
::
fooB
<!>)
<!
INAPPLICABLE_CANDIDATE
!>
bar
<!>(<!
UNRESOLVED_REFERENCE
!>
::
fooB
<!>,
a
)
<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
baz
<!>(
a
,
<!
UNRESOLVED_REFERENCE
!>
::
fooB
<!>)<!>
<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
bar
<!>(<!
UNRESOLVED_REFERENCE
!>
::
fooB
<!>,
a
)<!>
}
compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/implicitTypes.kt
浏览文件 @
338aad98
...
...
@@ -3,5 +3,5 @@ fun <T, R> use(x: (T) -> R): (T) -> R = x
fun
foo
()
=
use
(
::
bar
)
fun
bar
(
x
:
String
)
=
1
fun
loop1
()
=
<!
INAPPLICABLE_CANDIDATE
!>
use
<!>(<!
UNRESOLVED_REFERENCE
!>
::
loop2
<!>)
fun
loop1
()
=
<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
use
<!>(<!
UNRESOLVED_REFERENCE
!>
::
loop2
<!>)<!>
fun
loop2
()
=
loop1
()
compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/javaStatic.kt
浏览文件 @
338aad98
...
...
@@ -16,5 +16,5 @@ fun foo3(x: (String) -> Int) {}
fun
main
()
{
foo1
(
JavaClass
::
bar
)
foo2
(
JavaClass
::
bar
)
<!
AMBIGUITY
!>
foo3
<!>(
JavaClass
::
bar
)
<!
AMBIGUITY
{
LT
}!><!
AMBIGUITY
{
PSI
}!>
foo3
<!>(
JavaClass
::
bar
)<!>
}
compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/manyInnermanyOuterCandidatesAmbiguity.kt
浏览文件 @
338aad98
...
...
@@ -6,5 +6,5 @@ fun bar(): Int = 1
fun
bar
(
x
:
String
):
Int
=
1
fun
main
()
{
<!
AMBIGUITY
!>
foo
<!>(<!
UNRESOLVED_REFERENCE
!>
::
bar
<!>)
<!
AMBIGUITY
{
LT
}!><!
AMBIGUITY
{
PSI
}!>
foo
<!>(<!
UNRESOLVED_REFERENCE
!>
::
bar
<!>)<!>
}
compiler/fir/analysis-tests/testData/resolveWithStdlib/contracts/fromSource/good/returnsImplies/booleanOperators.kt
浏览文件 @
338aad98
...
...
@@ -59,8 +59,8 @@ fun test_2(x: Any) {
fun
test_3
(
x
:
Any
)
{
myRequireOr
(
x
is
B
,
x
is
C
)
x
.
foo
()
// OK
x
.<!
UNRESOLVED_REFERENCE
!>
bar
<!>()
// Error
x
.<!
UNRESOLVED_REFERENCE
!>
baz
<!>()
// Error
x
.<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
bar
<!>()<!>
// Error
x
.<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
baz
<!>()<!>
// Error
}
fun
test_4
(
x
:
Any
)
{
...
...
compiler/fir/analysis-tests/testData/resolveWithStdlib/j+k/JavaVisibility2.kt
浏览文件 @
338aad98
...
...
@@ -27,8 +27,8 @@ class A {
val
p3
=
JavaProtected
().<!
HIDDEN
!>
javaPProtectedPackage
<!>
fun
test
()
{
JavaProtected
.<!
HIDDEN
!>
javaMProtectedStatic
<!>()
JavaPackageLocal
.<!
HIDDEN
!>
javaMPackage
<!>()
JavaProtected
.<!
HIDDEN
{
LT
}!><!
HIDDEN
{
PSI
}!>
javaMProtectedStatic
<!>()<!>
JavaPackageLocal
.<!
HIDDEN
{
LT
}!><!
HIDDEN
{
PSI
}!>
javaMPackage
<!>()<!>
}
}
...
...
@@ -39,7 +39,7 @@ class B : JavaProtected() {
fun
test
()
{
JavaProtected
.
javaMProtectedStatic
()
JavaPackageLocal
.<!
HIDDEN
!>
javaMPackage
<!>()
JavaPackageLocal
.<!
HIDDEN
{
LT
}!><!
HIDDEN
{
PSI
}!>
javaMPackage
<!>()<!>
}
}
...
...
compiler/fir/analysis-tests/testData/resolveWithStdlib/j+k/KJKComplexHierarchyWithNested.kt
浏览文件 @
338aad98
...
...
@@ -5,9 +5,9 @@ fun main(k: KSub, vString: SuperClass<String>.NestedInSuperClass, vInt: SuperCla
k
.
getImpl
().
nestedI
(
vString
)
// TODO: Support parametrisized inner classes
k
.
getImpl
().<!
INAPPLICABLE_CANDIDATE
!>
nestedI
<!>(
vInt
)
k
.
getImpl
().<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
nestedI
<!>(
vInt
)<!>
k
.
getNestedSubClass
().
nested
(
""
)
k
.
getNestedSubClass
().<!
INAPPLICABLE_CANDIDATE
!>
nested
<!>(
1
)
k
.
getNestedSubClass
().<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
nested
<!>(
1
)<!>
}
// FILE: J1.java
...
...
compiler/fir/analysis-tests/testData/resolveWithStdlib/j+k/KotlinClassParameter.kt
浏览文件 @
338aad98
...
...
@@ -9,5 +9,5 @@ public class JavaClass {
// FILE: K2.kt
fun
main
()
{
JavaClass
.
baz
(
KotlinClass
())
JavaClass
.<!
INAPPLICABLE_CANDIDATE
!>
baz
<!>(
""
)
JavaClass
.<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
baz
<!>(
""
)<!>
}
compiler/fir/analysis-tests/testData/resolveWithStdlib/j+k/KotlinClassParameterGeneric.kt
浏览文件 @
338aad98
...
...
@@ -10,6 +10,6 @@ public class JavaClass {
fun
main
()
{
JavaClass
.
baz
(
KotlinClass
())
JavaClass
.
baz
(
KotlinClass
<
Int
>())
JavaClass
.<!
INAPPLICABLE_CANDIDATE
!>
baz
<!>(
KotlinClass
<
String
>())
JavaClass
.<!
INAPPLICABLE_CANDIDATE
!>
baz
<!>(
""
)
JavaClass
.<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
baz
<!>(
KotlinClass
<
String
>())<!>
JavaClass
.<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
baz
<!>(
""
)<!>
}
compiler/fir/analysis-tests/testData/resolveWithStdlib/listPlusAssign.kt
浏览文件 @
338aad98
fun
List
<
String
>.
modify
()
{
<!
VARIABLE_EXPECTED
!>
this
<!>
+=
"Alpha"
<!
VARIABLE_EXPECTED
!>
this
<!>
+=
"Omega"
<!
VARIABLE_EXPECTED
{
PSI
}
!>
this
<!>
+=
"Alpha"
<!
VARIABLE_EXPECTED
{
PSI
}
!>
this
<!>
+=
"Omega"
}
fun
Any
.
modify
()
{
...
...
compiler/fir/analysis-tests/testData/resolveWithStdlib/lowPriorityInResolution.kt
浏览文件 @
338aad98
<!
CONFLICTING_OVERLOADS
{
LT
}!><!
CONFLICTING_OVERLOADS
!>
@Suppress
(
"INVISIBLE_MEMBER"
,
"INVISIBLE_REFERENCE"
)
<!
CONFLICTING_OVERLOADS
!>
@Suppress
(
"INVISIBLE_MEMBER"
,
"INVISIBLE_REFERENCE"
)
<!
HIDDEN
!>
@
kotlin
.
internal
.
LowPriorityInOverloadResolution
<
!
>
fun
foo
():
Int
<
!
>
=
1
<!>
fun
foo
():
Int
<
!
>
=
1
<!
CONFLICTING_OVERLOADS
{
LT
}!><!
CONFLICTING_OVERLOADS
!>
fun
foo
():
String
<
!
>
=
""
<!>
<!
CONFLICTING_OVERLOADS
!>
fun
foo
():
String
<
!
>
=
""
fun
test
()
{
val
s
=
foo
()
...
...
compiler/fir/analysis-tests/testData/resolveWithStdlib/problems/KJKComplexHierarchyNestedLoop.kt
浏览文件 @
338aad98
...
...
@@ -2,11 +2,11 @@
class
K2
:
J1
()
{
class
Q
:
<!
UNRESOLVED_REFERENCE
!>
Nested
<
!
>()
fun
bar
()
{
<!
UNRESOLVED_REFERENCE
!>
foo
<!>()
<!
UNRESOLVED_REFERENCE
!>
baz
<!>()
<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
foo
<!>()<!>
<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
baz
<!>()<!>
<!
UNRESOLVED_REFERENCE
!>
superClass
<!>()
<!
UNRESOLVED_REFERENCE
!>
superI
<!>()
<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
superClass
<!>()<!>
<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
superI
<!>()<!>
}
}
...
...
compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/FirDiagnosticsWithLightTreeTestGenerated.java
浏览文件 @
338aad98
此差异已折叠。
点击以展开。
compiler/tests-for-compiler-generator/tests/org/jetbrains/kotlin/test/generators/GenerateJUnit5CompilerTests.kt
浏览文件 @
338aad98
...
...
@@ -104,6 +104,7 @@ fun generateJUnit5CompilerTests(args: Array<String>) {
annotations
=
listOf
(
annotation
(
Execution
::
class
.
java
,
ExecutionMode
.
SAME_THREAD
))
)
{
model
(
"resolve"
,
pattern
=
TestGeneratorUtil
.
KT_WITHOUT_DOTS_IN_NAME
)
model
(
"resolveWithStdlib"
,
pattern
=
TestGeneratorUtil
.
KT_WITHOUT_DOTS_IN_NAME
)
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录