diff --git a/compiler/fir/analysis-tests/testData/resolve/diagnostics/localAnnotationClass.kt b/compiler/fir/analysis-tests/testData/resolve/diagnostics/localAnnotationClass.kt index 2fda2ca1ce9..8cadc1dc6ff 100644 --- a/compiler/fir/analysis-tests/testData/resolve/diagnostics/localAnnotationClass.kt +++ b/compiler/fir/analysis-tests/testData/resolve/diagnostics/localAnnotationClass.kt @@ -2,7 +2,7 @@ fun foo() { annotation class Ann @Ann class Local { - // There should also be NESTED_CLASS_NOT_ALLOWED report here. - annotation class Nested + // There should also be NESTED_CLASS_NOT_ALLOWED report here. + annotation class Nested } } diff --git a/compiler/fir/analysis-tests/testData/resolve/diagnostics/typeArgumentsNotAllowed.kt b/compiler/fir/analysis-tests/testData/resolve/diagnostics/typeArgumentsNotAllowed.kt index 796fdcbfc0d..3b908487d2d 100644 --- a/compiler/fir/analysis-tests/testData/resolve/diagnostics/typeArgumentsNotAllowed.kt +++ b/compiler/fir/analysis-tests/testData/resolve/diagnostics/typeArgumentsNotAllowed.kt @@ -21,7 +21,7 @@ val a = rest.MyCla val b = Best.MyClass class B -class C<Boolean>> : B<F<Boolean>>() +class C<Boolean>> : B<F<Boolean>>() fun gest() {} diff --git a/compiler/fir/analysis-tests/testData/resolve/diagnostics/upperBoundViolated.kt b/compiler/fir/analysis-tests/testData/resolve/diagnostics/upperBoundViolated.kt index 879967259a8..7e330e16b9f 100644 --- a/compiler/fir/analysis-tests/testData/resolve/diagnostics/upperBoundViolated.kt +++ b/compiler/fir/analysis-tests/testData/resolve/diagnostics/upperBoundViolated.kt @@ -14,7 +14,7 @@ fun test() { val b1 = B<Int>() val b2 = B() val b3 = B<Any?>() - val b4 = B<UnexistingType>()NL<Int>()NumberPhile + val b4 = B<UnexistingType>()NL<Int>()NumberPhile val b5 = B<B<UnexistingType>>() fest<Boolean>() fest() @@ -40,7 +40,7 @@ fun rest() { class NumColl> typealias NL = NumColl> -val test7 = NL()NumberPhile +val test7 = NL()NumberPhile val test8 = NL() class NumberPhile(x: T) diff --git a/compiler/fir/analysis-tests/testData/resolve/throwableSubclass.kt b/compiler/fir/analysis-tests/testData/resolve/throwableSubclass.kt index 374ffdbdf0d..ab1b60c64b2 100644 --- a/compiler/fir/analysis-tests/testData/resolve/throwableSubclass.kt +++ b/compiler/fir/analysis-tests/testData/resolve/throwableSubclass.kt @@ -14,5 +14,5 @@ class Test5 { fun topLevelFun() { class Test8 : Error() - val obj = object : Throwable() {} + val obj = object : Throwable() {} } diff --git a/compiler/testData/diagnostics/tests/incompleteCode/diagnosticWithSyntaxError/checkBackingFieldException.fir.kt b/compiler/testData/diagnostics/tests/incompleteCode/diagnosticWithSyntaxError/checkBackingFieldException.fir.kt new file mode 100644 index 00000000000..40263a0ae6e --- /dev/null +++ b/compiler/testData/diagnostics/tests/incompleteCode/diagnosticWithSyntaxError/checkBackingFieldException.fir.kt @@ -0,0 +1,18 @@ +package h + +class Square() { + var size : Double = + set(value) { + //in LT this LAMBDA_EXPRESSION get parsed lazyly, but doesn't got anywhere in FIR tree (as property doesn't have place for it) + $area = size * size + } + + var area : Double + private set +} + +fun main() { + val s = Square() + + s.size = 2.0 +} diff --git a/compiler/testData/diagnostics/tests/incompleteCode/diagnosticWithSyntaxError/checkBackingFieldException.kt b/compiler/testData/diagnostics/tests/incompleteCode/diagnosticWithSyntaxError/checkBackingFieldException.kt index c2de3ee7fa9..68d19fae4e4 100644 --- a/compiler/testData/diagnostics/tests/incompleteCode/diagnosticWithSyntaxError/checkBackingFieldException.kt +++ b/compiler/testData/diagnostics/tests/incompleteCode/diagnosticWithSyntaxError/checkBackingFieldException.kt @@ -1,11 +1,10 @@ -// FIR_IDENTICAL package h class Square() { var size : Double = set(value) { //in LT this LAMBDA_EXPRESSION get parsed lazyly, but doesn't got anywhere in FIR tree (as property doesn't have place for it) - $area = size * size + $area = size * size } var area : Double diff --git a/compiler/testData/diagnostics/tests/typealias/noRHS.txt b/compiler/testData/diagnostics/tests/typealias/noRHS.txt index 52222299586..8e957588cd5 100644 --- a/compiler/testData/diagnostics/tests/typealias/noRHS.txt +++ b/compiler/testData/diagnostics/tests/typealias/noRHS.txt @@ -3,3 +3,5 @@ package public typealias = [ERROR : No type element] public typealias A1 = [ERROR : No type element] public typealias A2 = [ERROR : No type element] +public typealias Valid = kotlin.String +