Remove unjustified assertions

This commit is contained in:
Alexey Sedunov
2013-12-23 18:08:18 +04:00
parent 6a9c535129
commit fbb03afc0f
20 changed files with 341 additions and 29 deletions
@@ -0,0 +1,15 @@
<node text="A ()" base="true">
<node text="B ()">
<node text="C ()">
<node text="O3 ()"/>
</node>
<node text="O2 ()"/>
</node>
<node text="T ()">
<node text="U ()">
<node text="O5 ()"/>
</node>
<node text="O4 ()"/>
</node>
<node text="O1 ()"/>
</node>
@@ -0,0 +1,19 @@
open class <caret>A
open class B: A()
trait T: A
open class C: B()
trait U: T
object O1: A()
object O2: B()
object O3: C()
object O4: T
object O5: U
@@ -0,0 +1,15 @@
<node text="A ()" base="true">
<node text="B ()">
<node text="C ()">
<node text="O3 ()"/>
</node>
<node text="O2 ()"/>
</node>
<node text="T ()">
<node text="U ()">
<node text="O5 ()"/>
</node>
<node text="O4 ()"/>
</node>
<node text="O1 ()"/>
</node>
@@ -0,0 +1,19 @@
trait <caret>A
open class B: A
trait T: A
open class C: B()
trait U: T
object O1: A
object O2: B()
object O3: C()
object O4: T
object O5: U
@@ -1,3 +1,12 @@
<node text="A ()" base="true">
<node text="MyClass ()"/>
</node>
<node text="B ()"/>
<node text="X in MyClass ()"/>
<node text="Anonymous in MyClass ()"/>
<node text="G in MyClass ()"/>
<node text="C in MyClass ()"/>
<node text="X in foo() in MyClass ()"/>
<node text="Anonymous in foo() in MyClass ()"/>
<node text="F in foo() in MyClass ()"/>
<node text="D in foo() in MyClass ()"/>
<node text="E in bar() in main.kt ()"/>
</node>
@@ -1,3 +1,26 @@
class MyClass: A()
open class <caret>A
open class <caret>A
class B: A() {}
class MyClass(a: A = run { class X: A(); object: A() {} }) {
inner class G: A() {}
{
class C: A()
}
fun foo(a: A = run { class X: A(); object: A() {} }) {
val t = object {
inner class F: A()
}
class D: A()
}
}
val bar: Int
get() {
class E: A()
return 0
}
@@ -0,0 +1,12 @@
<node text="A ()" base="true">
<node text="B ()"/>
<node text="X in MyClass ()"/>
<node text="Anonymous in MyClass ()"/>
<node text="G in MyClass ()"/>
<node text="C in MyClass ()"/>
<node text="X in foo() in MyClass ()"/>
<node text="Anonymous in foo() in MyClass ()"/>
<node text="F in foo() in MyClass ()"/>
<node text="D in foo() in MyClass ()"/>
<node text="E in bar() in main.kt ()"/>
</node>
@@ -0,0 +1,26 @@
trait <caret>A
class B: A
class MyClass(a: A = run { class X: A; object: A {} }) {
inner class G: A {}
{
class C: A
}
fun foo(a: A = run { class X: A; object: A {} }) {
val t = object {
inner class F: A
}
class D: A
}
}
val bar: Int
get() {
class E: A
return 0
}
@@ -1,3 +1,10 @@
<node text="A ()" base="true">
<node text="O ()"/>
</node>
<node text="B ()"/>
<node text="Anonymous in MyClass ()"/>
<node text="C in MyClass ()"/>
<node text="Anonymous in foo() in MyClass ()"/>
<node text="D in foo() in MyClass ()"/>
<node text="F in t() in MyClass ()"/>
<node text="E in bar() in main.kt ()"/>
<node text="Anonymous in x() in main.kt ()"/>
</node>
@@ -1,3 +1,28 @@
object O: A()
open class <caret>A
open class <caret>A
object B: A()
class MyClass(a: A = run { object: A() {} }) {
{
object C: A()
}
fun foo(a: A = run { object: A() {} }) {
object D: A()
}
val t = object {
object F: A()
}
}
val bar: Int
get() {
object E: A()
return 0
}
val x = object: A() {
}
@@ -1,3 +1,10 @@
<node text="A ()" base="true">
<node text="O ()"/>
</node>
<node text="B ()"/>
<node text="Anonymous in MyClass ()"/>
<node text="C in MyClass ()"/>
<node text="Anonymous in foo() in MyClass ()"/>
<node text="D in foo() in MyClass ()"/>
<node text="F in t() in MyClass ()"/>
<node text="E in bar() in main.kt ()"/>
<node text="Anonymous in x() in main.kt ()"/>
</node>
@@ -1,3 +1,28 @@
object O: A
trait <caret>A
trait <caret>A
object B: A
class MyClass(a: A = run { object: A {} }) {
{
object C: A
}
fun foo(a: A = run { object: A {} }) {
object D: A
}
val t = object {
object F: A
}
}
val bar: Int
get() {
object E: A
return 0
}
val x = object: A {
}
@@ -0,0 +1,12 @@
<node text="A ()" base="true">
<node text="B ()"/>
<node text="X in MyClass ()"/>
<node text="Anonymous in MyClass ()"/>
<node text="G in MyClass ()"/>
<node text="C in MyClass ()"/>
<node text="X in foo() in MyClass ()"/>
<node text="Anonymous in foo() in MyClass ()"/>
<node text="D in foo() in MyClass ()"/>
<node text="F in foo() in MyClass ()"/>
<node text="E in bar() in main.kt ()"/>
</node>
@@ -0,0 +1,26 @@
open class <caret>A
trait B: A()
class MyClass(a: A = run { trait X: A(); object: A() {} }) {
inner trait G: A() {}
{
trait C: A()
}
fun foo(a: A = run { trait X: A(); object: A() {} }) {
trait D: A()
val t = object {
inner trait F: A()
}
}
}
val bar: Int
get() {
trait E: A()
return 0
}
@@ -0,0 +1,12 @@
<node text="A ()" base="true">
<node text="B ()"/>
<node text="X in MyClass ()"/>
<node text="Anonymous in MyClass ()"/>
<node text="G in MyClass ()"/>
<node text="C in MyClass ()"/>
<node text="X in foo() in MyClass ()"/>
<node text="Anonymous in foo() in MyClass ()"/>
<node text="D in foo() in MyClass ()"/>
<node text="F in foo() in MyClass ()"/>
<node text="E in bar() in main.kt ()"/>
</node>
@@ -0,0 +1,26 @@
trait <caret>A
trait B: A
class MyClass(a: A = run { trait X: A; object: A {} }) {
inner trait G: A {}
{
trait C: A
}
fun foo(a: A = run { trait X: A; object: A {} }) {
trait D: A
val t = object {
inner trait F: A
}
}
}
val bar: Int
get() {
trait E: A
return 0
}