Cleanup in compiler modules

This commit is contained in:
Ilya Gorbunov
2015-12-26 12:49:22 +03:00
parent 911adfd04d
commit 80916d5ed7
132 changed files with 322 additions and 322 deletions
@@ -44,7 +44,7 @@ class BridgeTest : TestCase() {
}
private fun v(text: String): Fun {
assert(text.length() == 3) { "Function vertex representation should consist of 3 characters: $text" }
assert(text.length == 3) { "Function vertex representation should consist of 3 characters: $text" }
assert(text[0] in setOf('-', '+')) { "First character should be '-' for abstract functions or '+' for concrete ones: $text" }
assert(text[1] in setOf('D', 'F')) { "Second character should be 'D' for declarations or 'F' for fake overrides: $text" }
assert(text[2].isDigit()) {
@@ -95,7 +95,7 @@ class BridgeTest : TestCase() {
for (vertex in vertices) {
val directConcreteSuperFunctions = vertex.overriddenFunctions.filter { !it.isAbstract }
assert(directConcreteSuperFunctions.size() <= 1) {
assert(directConcreteSuperFunctions.size <= 1) {
"Incorrect test data: function $vertex has more than one direct concrete super-function: ${vertex.overriddenFunctions}\n" +
"This is not allowed because only classes can contain implementations (concrete functions), and having more than one " +
"concrete super-function means having more than one superclass, which is prohibited in Kotlin"
@@ -118,7 +118,7 @@ class BridgeTest : TestCase() {
assert(concreteDeclarations.isNotEmpty()) {
"Incorrect test data: concrete fake override vertex $vertex has no concrete super-declarations"
}
assert(concreteDeclarations.size() == 1) {
assert(concreteDeclarations.size == 1) {
"Incorrect test data: concrete fake override vertex $vertex has more than one concrete super-declaration: " +
"$concreteDeclarations"
}