Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
硅谷海盗
kotlin
提交
7b068853
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,发现更多精彩内容 >>
提交
7b068853
编写于
11月 04, 2020
作者:
J
Jinseong Jeon
提交者:
teamcityserver
11月 12, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
FIR checker: reproduce KT-43156
上级
f4347a60
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
84 addition
and
2 deletion
+84
-2
compiler/fir/analysis-tests/tests/org/jetbrains/kotlin/fir/FirOldFrontendDiagnosticsTestWithStdlibGenerated.java
...fir/FirOldFrontendDiagnosticsTestWithStdlibGenerated.java
+5
-0
compiler/testData/diagnostics/testsWithStdLib/assignedInSynchronized.fir.kt
...diagnostics/testsWithStdLib/assignedInSynchronized.fir.kt
+12
-0
compiler/testData/diagnostics/testsWithStdLib/assignedInSynchronized.kt
...ata/diagnostics/testsWithStdLib/assignedInSynchronized.kt
+12
-0
compiler/testData/diagnostics/testsWithStdLib/assignedInSynchronized.txt
...ta/diagnostics/testsWithStdLib/assignedInSynchronized.txt
+10
-0
compiler/testData/diagnostics/testsWithStdLib/contracts/controlflow/initialization/exactlyOnce/valDefiniteInitialization.fir.kt
...itialization/exactlyOnce/valDefiniteInitialization.fir.kt
+13
-1
compiler/testData/diagnostics/testsWithStdLib/contracts/controlflow/initialization/exactlyOnce/valDefiniteInitialization.kt
...w/initialization/exactlyOnce/valDefiniteInitialization.kt
+13
-1
compiler/testData/diagnostics/testsWithStdLib/contracts/controlflow/initialization/exactlyOnce/valDefiniteInitialization.txt
.../initialization/exactlyOnce/valDefiniteInitialization.txt
+9
-0
compiler/tests/org/jetbrains/kotlin/checkers/DiagnosticsTestWithStdLibGenerated.java
...s/kotlin/checkers/DiagnosticsTestWithStdLibGenerated.java
+5
-0
compiler/tests/org/jetbrains/kotlin/checkers/javac/DiagnosticsTestWithStdLibUsingJavacGenerated.java
...s/javac/DiagnosticsTestWithStdLibUsingJavacGenerated.java
+5
-0
未找到文件。
compiler/fir/analysis-tests/tests/org/jetbrains/kotlin/fir/FirOldFrontendDiagnosticsTestWithStdlibGenerated.java
浏览文件 @
7b068853
...
...
@@ -39,6 +39,11 @@ public class FirOldFrontendDiagnosticsTestWithStdlibGenerated extends AbstractFi
runTest
(
"compiler/testData/diagnostics/testsWithStdLib/ArrayOfNothing.kt"
);
}
@TestMetadata
(
"assignedInSynchronized.kt"
)
public
void
testAssignedInSynchronized
()
throws
Exception
{
runTest
(
"compiler/testData/diagnostics/testsWithStdLib/assignedInSynchronized.kt"
);
}
@TestMetadata
(
"CallCompanionProtectedNonStatic.kt"
)
public
void
testCallCompanionProtectedNonStatic
()
throws
Exception
{
runTest
(
"compiler/testData/diagnostics/testsWithStdLib/CallCompanionProtectedNonStatic.kt"
);
...
...
compiler/testData/diagnostics/testsWithStdLib/assignedInSynchronized.fir.kt
0 → 100644
浏览文件 @
7b068853
class
A
{
fun
test
()
{
val
a
:
A
synchronized
(
this
)
{
if
(
bar
())
throw
RuntimeException
()
a
=
A
()
}
<!
UNINITIALIZED_VARIABLE
!>
a
<!>.
bar
()
}
fun
bar
()
=
false
}
compiler/testData/diagnostics/testsWithStdLib/assignedInSynchronized.kt
0 → 100644
浏览文件 @
7b068853
class
A
{
fun
test
()
{
val
a
:
A
synchronized
(
this
)
{
if
(
bar
())
throw
RuntimeException
()
a
=
A
()
}
a
.
bar
()
}
fun
bar
()
=
false
}
compiler/testData/diagnostics/testsWithStdLib/assignedInSynchronized.txt
0 → 100644
浏览文件 @
7b068853
package
public final class A {
public constructor A()
public final fun bar(): kotlin.Boolean
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
public final fun test(): kotlin.Unit
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
}
compiler/testData/diagnostics/testsWithStdLib/contracts/controlflow/initialization/exactlyOnce/valDefiniteInitialization.fir.kt
浏览文件 @
7b068853
...
...
@@ -89,4 +89,16 @@ class DefiniteInitializationInInitSection {
myRun
{
x
=
42
}
unknownRun
{
y
=
239
}
}
}
\ No newline at end of file
}
class
DefiniteInitializationAfterThrow
{
fun
test
()
{
val
a
:
Int
myRun
{
if
(
bar
())
throw
RuntimeException
()
a
=
42
}
<!
UNINITIALIZED_VARIABLE
!>
a
<!>.
hashCode
()
}
fun
bar
()
=
false
}
compiler/testData/diagnostics/testsWithStdLib/contracts/controlflow/initialization/exactlyOnce/valDefiniteInitialization.kt
浏览文件 @
7b068853
...
...
@@ -89,4 +89,16 @@ class DefiniteInitializationInInitSection {
myRun
{
<!
CAPTURED_VAL_INITIALIZATION
!>
x
<!>
=
42
}
unknownRun
{
<!
CAPTURED_MEMBER_VAL_INITIALIZATION
!>
y
<!>
=
239
}
}
}
\ No newline at end of file
}
class
DefiniteInitializationAfterThrow
{
fun
test
()
{
val
a
:
Int
myRun
{
if
(
bar
())
throw
RuntimeException
()
a
=
42
}
a
.
hashCode
()
}
fun
bar
()
=
false
}
compiler/testData/diagnostics/testsWithStdLib/contracts/controlflow/initialization/exactlyOnce/valDefiniteInitialization.txt
浏览文件 @
7b068853
...
...
@@ -11,6 +11,15 @@ public fun returningValue(): kotlin.Unit
public fun shadowing(): kotlin.Unit
public fun unknownRun(/*0*/ block: () -> kotlin.Unit): kotlin.Unit
public final class DefiniteInitializationAfterThrow {
public constructor DefiniteInitializationAfterThrow()
public final fun bar(): kotlin.Boolean
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
public final fun test(): kotlin.Unit
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
}
public final class DefiniteInitializationInInitSection {
public constructor DefiniteInitializationInInitSection()
public final val x: kotlin.Int
...
...
compiler/tests/org/jetbrains/kotlin/checkers/DiagnosticsTestWithStdLibGenerated.java
浏览文件 @
7b068853
...
...
@@ -39,6 +39,11 @@ public class DiagnosticsTestWithStdLibGenerated extends AbstractDiagnosticsTestW
runTest
(
"compiler/testData/diagnostics/testsWithStdLib/ArrayOfNothing.kt"
);
}
@TestMetadata
(
"assignedInSynchronized.kt"
)
public
void
testAssignedInSynchronized
()
throws
Exception
{
runTest
(
"compiler/testData/diagnostics/testsWithStdLib/assignedInSynchronized.kt"
);
}
@TestMetadata
(
"CallCompanionProtectedNonStatic.kt"
)
public
void
testCallCompanionProtectedNonStatic
()
throws
Exception
{
runTest
(
"compiler/testData/diagnostics/testsWithStdLib/CallCompanionProtectedNonStatic.kt"
);
...
...
compiler/tests/org/jetbrains/kotlin/checkers/javac/DiagnosticsTestWithStdLibUsingJavacGenerated.java
浏览文件 @
7b068853
...
...
@@ -39,6 +39,11 @@ public class DiagnosticsTestWithStdLibUsingJavacGenerated extends AbstractDiagno
runTest
(
"compiler/testData/diagnostics/testsWithStdLib/ArrayOfNothing.kt"
);
}
@TestMetadata
(
"assignedInSynchronized.kt"
)
public
void
testAssignedInSynchronized
()
throws
Exception
{
runTest
(
"compiler/testData/diagnostics/testsWithStdLib/assignedInSynchronized.kt"
);
}
@TestMetadata
(
"CallCompanionProtectedNonStatic.kt"
)
public
void
testCallCompanionProtectedNonStatic
()
throws
Exception
{
runTest
(
"compiler/testData/diagnostics/testsWithStdLib/CallCompanionProtectedNonStatic.kt"
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录