fixed: DEBUG_INFO_ERROR_ELEMENT should be visible in tests

This commit is contained in:
Svetlana Isakova
2012-11-17 19:53:18 +04:00
parent 993d3a3469
commit d0a6f6252d
35 changed files with 92 additions and 94 deletions
+1 -1
View File
@@ -18,4 +18,4 @@
B.foo()
}
val bb = <error>B</error>.foo()
val bb = <error>B</error>.<error>foo</error>()
+1 -1
View File
@@ -25,4 +25,4 @@ package nestedObjects
val b = B
val c = A.B
val d = A.B.A
val e = B.<error>A</error>.B
val e = B.<error>A</error>.<error>B</error>
@@ -9,7 +9,7 @@
this : Char
val <warning>a</warning> = {Double.() -> this : Double + this@xx : Char}
val <warning>b</warning> = @a{Double.() -> this@a : Double + this@xx : Char}
val <warning>c</warning> = @a{() -> <error>this@a</error> + this@xx : Char}
val <warning>c</warning> = @a{() -> <error>this@a</error> <error>+</error> this@xx : Char}
return (@a{Double.() -> this@a : Double + this@xx : Char})
}
}
@@ -1,7 +1,7 @@
//package a {
val afoo = <error descr="[TYPECHECKER_HAS_RUN_INTO_RECURSIVE_PROBLEM] Type checking has run into a recursive problem. Easiest workaround: specify types of your declarations explicitly">abar()</error>
fun abar() = afoo
fun abar() = <error>afoo</error>
//}
//package b {
+2 -2
View File
@@ -24,9 +24,9 @@ fun testUnresolved() {
}
for (j in <error>collection</error>) {
var i: Int = j
var i: Int = <error>j</error>
i += 1
foo1(j)
foo1(<error>j</error>)
}
}
+2 -2
View File
@@ -85,7 +85,7 @@ fun f13(a : A?) {
}
else {
a<info>?.</info>foo()
<error descr="[UNRESOLVED_REFERENCE] Unresolved reference: c">c</error>.bar()
<error descr="[UNRESOLVED_REFERENCE] Unresolved reference: c">c</error>.<error>bar</error>()
}
a<info>?.</info>foo()
@@ -191,7 +191,7 @@ fun mergeAutocasts(a: Any?) {
val <warning>i</warning>: Int = <info descr="Automatically cast to jet.String">a</info>.compareTo("")
}
if (a is String && <info descr="Automatically cast to jet.String">a</info>.compareTo("") == 0) {}
if (a is String || a.<error descr="[UNRESOLVED_REFERENCE] Unresolved reference: compareTo">compareTo</error>("") == 0) {}
if (a is String || a.<error descr="[UNRESOLVED_REFERENCE] Unresolved reference: compareTo">compareTo</error>("") <error>==</error> 0) {}
}
//mutability
+4 -4
View File
@@ -4,7 +4,7 @@ val y = object {
val a = <error>y</error>
}
val z = y.a;
val z = y.<error>a</error>;
object A {
val x = A
@@ -12,11 +12,11 @@ object A {
val a = object {
{
b + 1
<error>b</error> <error>+</error> 1
}
val x = b
val x = <error>b</error>
val y = 1
}
val b = <error>a</error>.x
val b = <error>a</error>.<error>x</error>
val c = a.y