Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
硅谷海盗
kotlin
提交
5419b0a3
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,发现更多精彩内容 >>
提交
5419b0a3
编写于
3月 29, 2012
作者:
S
Svetlana Isakova
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Tests fixed after visibility changing
上级
167a9c44
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
8 addition
and
22 deletion
+8
-22
compiler/testData/codegen/regressions/kt529.kt
compiler/testData/codegen/regressions/kt529.kt
+1
-1
compiler/testData/diagnostics/tests/nullabilityAndAutoCasts/kt362.jet
...tData/diagnostics/tests/nullabilityAndAutoCasts/kt362.jet
+5
-6
compiler/testData/diagnostics/tests/override/SuspiciousCase1.jet
...r/testData/diagnostics/tests/override/SuspiciousCase1.jet
+1
-1
compiler/tests/org/jetbrains/jet/codegen/PropertyGenTest.java
...iler/tests/org/jetbrains/jet/codegen/PropertyGenTest.java
+0
-12
compiler/tests/org/jetbrains/jet/types/JetTypeCheckerTest.java
...ler/tests/org/jetbrains/jet/types/JetTypeCheckerTest.java
+1
-2
未找到文件。
compiler/testData/codegen/regressions/kt529.kt
浏览文件 @
5419b0a3
...
...
@@ -70,7 +70,7 @@ class Luhny() {
}
}
private
fun
printAll
()
{
fun
printAll
()
{
while
(!
buffer
.
isEmpty
())
print
(
buffer
.
removeFirst
())
digits
.
clear
()
...
...
compiler/testData/diagnostics/tests/nullabilityAndAutoCasts/kt362.jet
浏览文件 @
5419b0a3
...
...
@@ -6,13 +6,13 @@ package example;
fun test() {
val p = test.Public()
if (p.public is Int) <!AUTOCAST_IMPOSSIBLE!>p.public<!> + 1
if (p.
protected is Int) <!AUTOCAST_IMPOSSIBLE!>p.
protected<!> + 1
if (p.
i_protected is Int) p.i_protected
+ 1
if (p.
<!UNRESOLVED_REFERENCE!>protected<!> is Int) p.<!UNRESOLVED_REFERENCE!>
protected<!> + 1
if (p.
<!UNRESOLVED_REFERENCE!>i_protected<!> is Int) p.<!UNRESOLVED_REFERENCE!>i_protected<!>
+ 1
if (p.internal is Int) p.internal + 1
val i = test.Public()
if (i.public is Int) <!AUTOCAST_IMPOSSIBLE!>i.public<!> + 1
if (i.
protected is Int) <!AUTOCAST_IMPOSSIBLE!>i.
protected<!> + 1
if (i.
i_protected is Int) i.i_protected
+ 1
if (i.
<!UNRESOLVED_REFERENCE!>protected<!> is Int) i.<!UNRESOLVED_REFERENCE!>
protected<!> + 1
if (i.
<!UNRESOLVED_REFERENCE!>i_protected<!> is Int) i.<!UNRESOLVED_REFERENCE!>i_protected<!>
+ 1
if (i.internal is Int) i.internal + 1
}
...
...
@@ -30,5 +30,4 @@ internal class Internal() {
protected val protected : Int? = 1;
internal protected val i_protected : Int? = 1;
val internal : Int? = 1
}
}
\ No newline at end of file
compiler/testData/diagnostics/tests/override/SuspiciousCase1.jet
浏览文件 @
5419b0a3
...
...
@@ -2,7 +2,7 @@
// this test checks it does it properly
trait Foo<P> {
fun quux(p: P, q: Int = 17) = 18
fun quux(p: P, q: Int = 17)
: Int
= 18
}
trait Bar<Q> : Foo<Q>
...
...
compiler/tests/org/jetbrains/jet/codegen/PropertyGenTest.java
浏览文件 @
5419b0a3
...
...
@@ -78,18 +78,6 @@ public class PropertyGenTest extends CodegenTestCase {
assertEquals
(
239
,
field
.
get
(
null
));
}
public
void
testProtectedPropertyInNamespace
()
throws
Exception
{
loadText
(
"protected val x : Int = 239"
);
final
Class
nsClass
=
generateNamespaceClass
();
final
Field
[]
fields
=
nsClass
.
getDeclaredFields
();
assertEquals
(
1
,
fields
.
length
);
final
Field
field
=
fields
[
0
];
field
.
setAccessible
(
true
);
assertEquals
(
"x"
,
field
.
getName
());
assertEquals
(
Modifier
.
PROTECTED
|
Modifier
.
STATIC
|
Modifier
.
FINAL
,
field
.
getModifiers
());
assertEquals
(
239
,
field
.
get
(
null
));
}
public
void
testFieldPropertyAccess
()
throws
Exception
{
loadFile
(
"properties/fieldPropertyAccess.jet"
);
// System.out.println(generateToText());
...
...
compiler/tests/org/jetbrains/jet/types/JetTypeCheckerTest.java
浏览文件 @
5419b0a3
...
...
@@ -664,9 +664,8 @@ public class JetTypeCheckerTest extends JetLiteFixture {
@Override
public
Set
<
FunctionDescriptor
>
getFunctions
(
@NotNull
String
name
)
{
Set
<
FunctionDescriptor
>
writableFunctionGroup
=
Sets
.
newLinkedHashSet
();
ModuleDescriptor
module
=
new
ModuleDescriptor
(
"TypeCheckerTest"
);
for
(
String
funDecl
:
FUNCTION_DECLARATIONS
)
{
FunctionDescriptor
functionDescriptor
=
descriptorResolver
.
resolveFunctionDescriptor
(
module
,
this
,
JetPsiFactory
.
createFunction
(
getProject
(),
funDecl
),
JetTestUtils
.
DUMMY_TRACE
);
FunctionDescriptor
functionDescriptor
=
descriptorResolver
.
resolveFunctionDescriptor
(
this
.
getContainingDeclaration
()
,
this
,
JetPsiFactory
.
createFunction
(
getProject
(),
funDecl
),
JetTestUtils
.
DUMMY_TRACE
);
if
(
name
.
equals
(
functionDescriptor
.
getName
()))
{
writableFunctionGroup
.
add
(
functionDescriptor
);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录